pub struct Buffers<'a> { /* private fields */ }Expand description
A list of BufferRefs, still in its encoded form.
Implementations§
Source§impl<'a> Buffers<'a>
impl<'a> Buffers<'a>
Sourcepub fn from_bytes(raw: &'a [u8]) -> Result<Self>
pub fn from_bytes(raw: &'a [u8]) -> Result<Self>
Wraps the encoded form.
§Errors
Returns Error::Malformed if the length is not a whole number of buffer references.
Trait Implementations§
impl<'a> Copy for Buffers<'a>
impl<'a> Eq for Buffers<'a>
impl<'a> StructuralPartialEq for Buffers<'a>
Auto Trait Implementations§
impl<'a> Freeze for Buffers<'a>
impl<'a> RefUnwindSafe for Buffers<'a>
impl<'a> Send for Buffers<'a>
impl<'a> Sync for Buffers<'a>
impl<'a> Unpin for Buffers<'a>
impl<'a> UnsafeUnpin for Buffers<'a>
impl<'a> UnwindSafe for Buffers<'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