Skip to main content

IntoBytes

Trait IntoBytes 

Source
pub trait IntoBytes<T>
where Self: Sized,
{ // Required method fn as_bytes(&self) -> T; }

Required Methods§

Source

fn as_bytes(&self) -> T

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoBytes<Arc<[u8]>> for &&String

Source§

impl IntoBytes<Arc<[u8]>> for &&str

Source§

impl IntoBytes<Arc<[u8]>> for &Arc<[u8]>

Source§

impl IntoBytes<Arc<[u8]>> for &String

Source§

impl IntoBytes<Arc<[u8]>> for &str

Source§

impl IntoBytes<Arc<[u8]>> for String

Source§

impl IntoBytes<Arc<[u8]>> for bool

Source§

impl IntoBytes<Arc<[u8]>> for char

Source§

impl IntoBytes<Arc<[u8]>> for f64

Source§

impl IntoBytes<Arc<[u8]>> for i64

Source§

impl IntoBytes<Arc<[u8]>> for usize

Implementors§