Struct aldrin_core::EnumDeserializer
source · pub struct EnumDeserializer<'a, 'b> { /* private fields */ }
Implementations§
source§impl<'a, 'b> EnumDeserializer<'a, 'b>
impl<'a, 'b> EnumDeserializer<'a, 'b>
pub fn variant(&self) -> u32
pub fn deserialize<T: Deserialize>(self) -> Result<T, DeserializeError>
pub fn skip(self) -> Result<(), DeserializeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> Freeze for EnumDeserializer<'a, 'b>
impl<'a, 'b> RefUnwindSafe for EnumDeserializer<'a, 'b>
impl<'a, 'b> Send for EnumDeserializer<'a, 'b>
impl<'a, 'b> Sync for EnumDeserializer<'a, 'b>
impl<'a, 'b> Unpin for EnumDeserializer<'a, 'b>
impl<'a, 'b> !UnwindSafe for EnumDeserializer<'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