Struct sppparse::SparseRef[][src]

pub struct SparseRef<S> { /* fields omitted */ }

An owned dynamic ref

SparseRef will render dynamically the pointed value.

It uses a SparseState to render itself in order to limit the IO calls at a minimum. It will deserialize into the desired type.

If the SparseStateFile used to render the object changes, SparseRef will deserialize it again in order to always be up to date.

Implementations

impl<S> SparseRef<S>[src]

pub fn val(&self) -> &Box<SparsePointedValue<S>>[src]

The value deserialized value, if any

pub fn utils(&self) -> &SparseMetadata[src]

Metadata about the pointer

Trait Implementations

impl<S: Clone> Clone for SparseRef<S>[src]

impl<S: Debug> Debug for SparseRef<S>[src]

impl<'de, S> Deserialize<'de> for SparseRef<S>[src]

impl<S: PartialEq> PartialEq<SparseRef<S>> for SparseRef<S>[src]

impl<S> Serialize for SparseRef<S>[src]

impl<S> Sparsable for SparseRef<S> where
    S: DeserializeOwned + Serialize + SparsableTrait
[src]

impl<S> SparsePointer<S> for SparseRef<S> where
    S: DeserializeOwned + Serialize + SparsableTrait
[src]

impl<S> StructuralPartialEq for SparseRef<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for SparseRef<S> where
    S: RefUnwindSafe

impl<S> Send for SparseRef<S> where
    S: Send

impl<S> Sync for SparseRef<S> where
    S: Sync

impl<S> Unpin for SparseRef<S>

impl<S> UnwindSafe for SparseRef<S> where
    S: 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>,