Struct aldrin_core::BytesDeserializer
source · pub struct BytesDeserializer<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> BytesDeserializer<'a, 'b>
impl<'a, 'b> BytesDeserializer<'a, 'b>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn deserialize(&mut self, dst: &mut [u8]) -> Result<(), DeserializeError>
pub fn deserialize_to_vec( &mut self, len: usize ) -> Result<Vec<u8>, DeserializeError>
pub fn deserialize_all_to_vec(self) -> Result<Vec<u8>, DeserializeError>
pub fn skip(&mut self, len: usize) -> Result<(), DeserializeError>
pub fn skip_all(self) -> Result<(), DeserializeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for BytesDeserializer<'a, 'b>
impl<'a, 'b> RefUnwindSafe for BytesDeserializer<'a, 'b>
impl<'a, 'b> Send for BytesDeserializer<'a, 'b>
impl<'a, 'b> Sync for BytesDeserializer<'a, 'b>
impl<'a, 'b> Unpin for BytesDeserializer<'a, 'b>
impl<'a, 'b> !UnwindSafe for BytesDeserializer<'a, 'b>
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