Map2Deserializer

Struct Map2Deserializer 

Source
pub struct Map2Deserializer<'a, 'b, K> { /* private fields */ }

Implementations§

Source§

impl<'a, 'b, K: KeyTag> Map2Deserializer<'a, 'b, K>

Source

pub fn deserialize<L: DeserializeKey<K>>( &mut self, ) -> Result<Option<MapElementDeserializer<'_, 'b, L>>, DeserializeError>

Source

pub fn deserialize_element<L, T, U>( &mut self, ) -> Result<Option<(L, U)>, DeserializeError>
where L: DeserializeKey<K>, T: Tag, U: Deserialize<T>,

Source

pub fn deserialize_extend<L, T, U, V>( self, map: &mut V, ) -> Result<(), DeserializeError>
where L: DeserializeKey<K>, T: Tag, U: Deserialize<T>, V: Extend<(L, U)>,

Source

pub fn skip_element(&mut self) -> Result<(), DeserializeError>

Source

pub fn skip(self) -> Result<(), DeserializeError>

Source

pub fn finish<T>(self, t: T) -> Result<T, DeserializeError>

Source

pub fn finish_with<T, F>(self, f: F) -> Result<T, DeserializeError>
where F: FnOnce() -> Result<T, DeserializeError>,

Source

pub fn skip_and_finish<T>(self, t: T) -> Result<T, DeserializeError>

Source

pub fn skip_and_finish_with<T, F>(self, f: F) -> Result<T, DeserializeError>
where F: FnOnce() -> Result<T, DeserializeError>,

Trait Implementations§

Source§

impl<K> Debug for Map2Deserializer<'_, '_, K>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, 'b, K> Freeze for Map2Deserializer<'a, 'b, K>

§

impl<'a, 'b, K> RefUnwindSafe for Map2Deserializer<'a, 'b, K>
where K: RefUnwindSafe,

§

impl<'a, 'b, K> Send for Map2Deserializer<'a, 'b, K>
where K: Send,

§

impl<'a, 'b, K> Sync for Map2Deserializer<'a, 'b, K>
where K: Sync,

§

impl<'a, 'b, K> Unpin for Map2Deserializer<'a, 'b, K>
where K: Unpin,

§

impl<'a, 'b, K> !UnwindSafe for Map2Deserializer<'a, 'b, K>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.