Struct serde_state::de::Seed
[−]
[src]
pub struct Seed<S, T> { pub seed: S, // some fields omitted }
Wrapper type which implements DeserializeSeed
for DeserializeState
instances
Fields
seed: S
The wrapped seed
Methods
impl<S, T> Seed<S, T>
[src]
Trait Implementations
impl<S: Debug, T: Debug> Debug for Seed<S, T>
[src]
impl<S, T> Clone for Seed<S, T> where
S: Clone,
[src]
S: Clone,
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<S, T> Copy for Seed<S, T> where
S: Copy,
[src]
S: Copy,
impl<S, T, U> AsMut<U> for Seed<S, T> where
S: AsMut<U>,
[src]
S: AsMut<U>,
fn as_mut(&mut self) -> &mut U
Performs the conversion.
impl<'de, 's, S, T> DeserializeSeed<'de> for Seed<&'s mut S, T> where
T: DeserializeState<'de, S>,
[src]
T: DeserializeState<'de, S>,
type Value = T
The type produced by using this seed.
fn deserialize<D>(self, deserializer: D) -> Result<Self::Value, D::Error> where
D: Deserializer<'de>,
D: Deserializer<'de>,
Equivalent to the more common Deserialize::deserialize
method, except with some initial piece of data (the seed) passed in. Read more