pub trait AsBytes {
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}
Expand description
Helper trait for types that can be viewed as a byte slice
Required Methods§
Implementations on Foreign Types§
Implementors§
impl AsBytes for &Bytes
impl<I> AsBytes for LocatingSlice<I>where
I: AsBytes,
impl<I> AsBytes for Partial<I>where
I: AsBytes,
impl<I, E> AsBytes for Recoverable<I, E>
Available on crate features
unstable-recover
and std
only.