Struct sppparse::SparseRefRawInline[][src]

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

An owned dynamic ref

SparseRefRawInline will render dynamically the pointed value.

The mains differences with the other pointers is that SparseRefRawInline will not render nested pointer. It’s a simple, single depth, pointer. It’s also not a selector. The type pointed MUST be a string, a valid pointer and the pointed value must match the S type.

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, SparseRefRawInline will deserialize it again in order to always be up to date.

Implementations

impl<S> SparseRefRawInline<S>[src]

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

The value deserialized value, if any

pub fn raw_pointer(&self) -> &String[src]

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

Metadata about the pointer

impl<S> SparseRefRawInline<S> where
    S: DeserializeOwned + Serialize + SparsableTrait
[src]

pub fn new(
    state: &mut SparseState,
    path: PathBuf,
    raw_pointer: String,
    depth: u32
) -> Result<Self, SparseError>
[src]

Create a new SparseRefRawInline

Trait Implementations

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

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

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

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

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

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

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

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

Auto Trait Implementations

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

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

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

impl<S> Unpin for SparseRefRawInline<S>

impl<S> UnwindSafe for SparseRefRawInline<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>,