Struct lair_keystore::dependencies::rmpv::ext::EnumRefDeserializer
source · pub struct EnumRefDeserializer<'de> { /* private fields */ }
Implementations§
source§impl<'de> EnumRefDeserializer<'de>
impl<'de> EnumRefDeserializer<'de>
Trait Implementations§
source§impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
impl<'de> EnumAccess<'de> for EnumRefDeserializer<'de>
source§type Error = Error
type Error = Error
The error type that can be returned if some error occurs during
deserialization.
source§type Variant = VariantRefDeserializer<'de>
type Variant = VariantRefDeserializer<'de>
The
Visitor
that will be used to deserialize the content of the enum
variant.source§fn variant_seed<V>(
self,
seed: V,
) -> Result<(<V as DeserializeSeed<'de>>::Value, <EnumRefDeserializer<'de> as EnumAccess<'de>>::Variant), <EnumRefDeserializer<'de> as EnumAccess<'de>>::Error>where
V: DeserializeSeed<'de>,
fn variant_seed<V>(
self,
seed: V,
) -> Result<(<V as DeserializeSeed<'de>>::Value, <EnumRefDeserializer<'de> as EnumAccess<'de>>::Variant), <EnumRefDeserializer<'de> as EnumAccess<'de>>::Error>where
V: DeserializeSeed<'de>,
variant
is called to identify which variant to deserialize. Read moreAuto Trait Implementations§
impl<'de> Freeze for EnumRefDeserializer<'de>
impl<'de> RefUnwindSafe for EnumRefDeserializer<'de>
impl<'de> Send for EnumRefDeserializer<'de>
impl<'de> Sync for EnumRefDeserializer<'de>
impl<'de> Unpin for EnumRefDeserializer<'de>
impl<'de> UnwindSafe for EnumRefDeserializer<'de>
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more