Trait wasmer::IntoBytes

source ·
pub trait IntoBytes {
    // Required method
    fn into_bytes(self) -> Bytes;
}
Expand description

Convert binary data into [bytes::Bytes].

Required Methods§

source

fn into_bytes(self) -> Bytes

Convert binary data into [bytes::Bytes].

Implementations on Foreign Types§

source§

impl IntoBytes for Vec<u8>

source§

fn into_bytes(self) -> Bytes

source§

impl IntoBytes for &[u8]

source§

fn into_bytes(self) -> Bytes

source§

impl IntoBytes for &Vec<u8>

source§

fn into_bytes(self) -> Bytes

source§

impl IntoBytes for Cow<'_, [u8]>

source§

fn into_bytes(self) -> Bytes

source§

impl IntoBytes for Bytes

source§

fn into_bytes(self) -> Bytes

source§

impl<const N: usize> IntoBytes for &[u8; N]

source§

fn into_bytes(self) -> Bytes

source§

impl IntoBytes for &str

source§

fn into_bytes(self) -> Bytes

Implementors§