pub fn copy_from_slice_in<T>(data: &[u8], pool: T) -> Self
    where
        PoolRef: From<T>,
    {
        if data.len() <= INLINE_CAP {
            Bytes {
                inner: Inner::from_slice_inline(data),
            }
        } else {
            Bytes {
                inner: Inner::from_slice(data.len(), data, pool.into()),
            }
        }
    }
/// Creates `Bytes` instance from slice, by copying it.
Creates `Bytes` instance from slice, by copying it.
Creates ` Bytes ` instance from slice by copying it .
pub fn copy_from_slice_in<T>(data: &[u8], pool: T) -> Self
    where
        PoolRef: From<T>,
    {
        if data.len() <= INLINE_CAP {
            Bytes {
                inner: Inner::from_slice_inline(data),
            }
        } else {
            Bytes {
                inner: Inner::from_slice(data.len(), data, pool.into()),
            }
        }
    }
pub fn copy_from_slice_in < T > ( data : & [ u8 ] , pool : T ) -> Self where PoolRef : From < T > , { if data . len ( ) <= INLINE_CAP { Bytes { inner : Inner :: from_slice_inline ( data ) , } } else { Bytes { inner : Inner :: from_slice ( data . len ( ) , data , pool . into ( ) ) , } } }
Creates `Bytes` instance from slice, by copying it.
Creates ` Bytes ` instance from slice by copying it .
data
&[u8]
pool
T
data
&[u8]
pool
T