pub fn copy_from_slice(s: &[u8]) -> Self {
        Self::Bytes {
            body: Bytes::copy_from_slice(s),
        }
    }
/// Constructs new `AnyBody` instance from a slice of bytes by copying it.
///
/// If your bytes container is owned, it may be cheaper to use a `From` impl.
Constructs new `AnyBody` instance from a slice of bytes by copying it.
If your bytes container is owned, it may be cheaper to use a `From` impl.
Constructs new ` AnyBody ` instance from a slice of bytes by copying it . If your bytes container is owned it may be cheaper to use a ` From ` impl .
pub fn copy_from_slice(s: &[u8]) -> Self {
        Self::Bytes {
            body: Bytes::copy_from_slice(s),
        }
    }
pub fn copy_from_slice ( s : & [ u8 ] ) -> Self { Self :: Bytes { body : Bytes :: copy_from_slice ( s ) , } }
Constructs new `AnyBody` instance from a slice of bytes by copying it.
Constructs new ` AnyBody ` instance from a slice of bytes by copying it .
s
&[u8]
s
&[u8]