pub struct Buf<'a> { /* private fields */ }Expand description
Wrapper over slice of bytes.
Can be converted into from any byte slice
Trait Implementations§
Source§impl<'a> From<&'a [MaybeUninit<u8>]> for Buf<'a>
impl<'a> From<&'a [MaybeUninit<u8>]> for Buf<'a>
Source§fn from(value: &'a [MaybeUninit<u8>]) -> Self
fn from(value: &'a [MaybeUninit<u8>]) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for Buf<'a>
impl<'a> RefUnwindSafe for Buf<'a>
impl<'a> !Send for Buf<'a>
impl<'a> !Sync for Buf<'a>
impl<'a> Unpin for Buf<'a>
impl<'a> UnwindSafe for Buf<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more