pub(crate) struct DeserializerCommon<'de, 'sig, 'f, F> {
pub(crate) ctxt: Context,
pub(crate) bytes: &'de [u8],
pub(crate) fds: Option<&'f [F]>,
pub(crate) pos: usize,
pub(crate) signature: &'sig Signature,
pub(crate) container_depths: ContainerDepths,
}
Expand description
Our deserialization implementation.
Fields§
§ctxt: Context
§bytes: &'de [u8]
§fds: Option<&'f [F]>
§pos: usize
§signature: &'sig Signature
§container_depths: ContainerDepths
Implementations§
Source§impl<F> DeserializerCommon<'_, '_, '_, F>where
F: AsFd,
impl<F> DeserializerCommon<'_, '_, '_, F>where
F: AsFd,
Source§impl<'de, F> DeserializerCommon<'de, '_, '_, F>
impl<'de, F> DeserializerCommon<'de, '_, '_, F>
pub fn parse_padding(&mut self, alignment: usize) -> Result<usize>
pub fn prep_deserialize_basic<T>(&mut self) -> Result<()>where
T: Basic,
pub fn next_slice(&mut self, len: usize) -> Result<&'de [u8]>
pub fn next_const_size_slice<T>(&mut self) -> Result<&[u8]>where
T: Basic,
pub fn abs_pos(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'de, 'sig, 'f, F> Freeze for DeserializerCommon<'de, 'sig, 'f, F>
impl<'de, 'sig, 'f, F> RefUnwindSafe for DeserializerCommon<'de, 'sig, 'f, F>where
F: RefUnwindSafe,
impl<'de, 'sig, 'f, F> Send for DeserializerCommon<'de, 'sig, 'f, F>where
F: Sync,
impl<'de, 'sig, 'f, F> Sync for DeserializerCommon<'de, 'sig, 'f, F>where
F: Sync,
impl<'de, 'sig, 'f, F> Unpin for DeserializerCommon<'de, 'sig, 'f, F>
impl<'de, 'sig, 'f, F> UnwindSafe for DeserializerCommon<'de, 'sig, 'f, F>where
F: RefUnwindSafe,
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