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

Implementations

impl<S, T> Seed<S, T>[src]

pub fn new(seed: S) -> Seed<S, T>[src]

Constructs a new instance of Seed

Trait Implementations

impl<S, T, U> AsMut<U> for Seed<S, T> where
    S: AsMut<U>, 
[src]

impl<S, T> Clone for Seed<S, T> where
    S: Clone
[src]

impl<S, T> Copy for Seed<S, T> where
    S: Copy
[src]

impl<S: Debug, T: Debug> Debug for Seed<S, T>[src]

impl<'de, 's, S, T> DeserializeSeed<'de> for Seed<&'s mut S, T> where
    S: ?Sized,
    T: DeserializeState<'de, S>, 
[src]

type Value = T

The type produced by using this seed.

Auto Trait Implementations

impl<S, T> RefUnwindSafe for Seed<S, T> where
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<S, T> Send for Seed<S, T> where
    S: Send,
    T: Send
[src]

impl<S, T> Sync for Seed<S, T> where
    S: Sync,
    T: Sync
[src]

impl<S, T> Unpin for Seed<S, T> where
    S: Unpin,
    T: Unpin
[src]

impl<S, T> UnwindSafe for Seed<S, T> where
    S: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.