[][src]Struct forest_json_utils::GoVecVisitor

pub struct GoVecVisitor<T, D = T> { /* fields omitted */ }

Helper visitor to match Go's default behaviour of serializing uninitialized slices as null. This will be able to deserialize null as empty Vectors of the type.

T indicates the return type, and D is an optional generic to override the

Implementations

impl<T, D> GoVecVisitor<T, D>[src]

pub fn new() -> Self[src]

Trait Implementations

impl<T: Default, D: Default> Default for GoVecVisitor<T, D>[src]

impl<'de, T, D> Visitor<'de> for GoVecVisitor<T, D> where
    T: From<D>,
    D: Deserialize<'de>, 
[src]

type Value = Vec<T>

The value produced by this visitor.

Auto Trait Implementations

impl<T, D> RefUnwindSafe for GoVecVisitor<T, D> where
    D: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, D> Send for GoVecVisitor<T, D> where
    D: Send,
    T: Send
[src]

impl<T, D> Sync for GoVecVisitor<T, D> where
    D: Sync,
    T: Sync
[src]

impl<T, D> Unpin for GoVecVisitor<T, D> where
    D: Unpin,
    T: Unpin
[src]

impl<T, D> UnwindSafe for GoVecVisitor<T, D> where
    D: 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<'de, T> Expected for T where
    T: Visitor<'de>, 
[src]

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

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

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.