Enum sppparse::SparseSelector[][src]

pub enum SparseSelector<T> {
    Ref(SparseRefRaw<T>),
    Obj(SparsePointedValue<T>),
    Null,
}

An owned selector between a raw object, a raw pointer or an owned pointer

Use this enum in your structure when allowing either a pointer or the value directly.

The SparseSelector allows to switch between a raw, unparsed pointer to a parsed pointer resolved at initialization.

Variants

Ref(SparseRefRaw<T>)

A deserialized JSON pointer contained the pointed value from the local or distant file

The object included in the original document

Null

A default value that should not be present once the SparseRoot document has been initialized.

Trait Implementations

impl<T: Clone> Clone for SparseSelector<T>[src]

impl<T: Debug> Debug for SparseSelector<T>[src]

impl<T> Default for SparseSelector<T> where
    T: Any + DeserializeOwned + Serialize + SparsableTrait
[src]

impl<'de, T> Deserialize<'de> for SparseSelector<T> where
    T: Deserialize<'de>, 
[src]

impl<T: PartialEq> PartialEq<SparseSelector<T>> for SparseSelector<T>[src]

impl<T> Serialize for SparseSelector<T> where
    T: Serialize
[src]

impl<T> Sparsable for SparseSelector<T> where
    T: Any + DeserializeOwned + Serialize + SparsableTrait
[src]

impl<T> SparsePointer<T> for SparseSelector<T> where
    T: Any + DeserializeOwned + Serialize + SparsableTrait
[src]

impl<T> StructuralPartialEq for SparseSelector<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SparseSelector<T> where
    T: RefUnwindSafe

impl<T> Send for SparseSelector<T> where
    T: Send

impl<T> Sync for SparseSelector<T> where
    T: Sync

impl<T> Unpin for SparseSelector<T> where
    T: Unpin

impl<T> UnwindSafe for SparseSelector<T> where
    T: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,