Trait sppparse::SparsableTrait[][src]

pub trait SparsableTrait {
    fn sparse_init(
        &mut self,
        state: &mut SparseState,
        metadata: &SparseMetadata,
        depth: u32
    ) -> Result<(), SparseError>; fn sparse_updt(
        &mut self,
        state: &mut SparseState,
        metadata: &SparseMetadata,
        depth: u32
    ) -> Result<(), SparseError> { ... }
fn check_depth(&self, depth: u32) -> Result<(), SparseError> { ... } }

Required methods

fn sparse_init(
    &mut self,
    state: &mut SparseState,
    metadata: &SparseMetadata,
    depth: u32
) -> Result<(), SparseError>
[src]

Initialize recusively a Sparsable pointer

Loading content...

Provided methods

fn sparse_updt(
    &mut self,
    state: &mut SparseState,
    metadata: &SparseMetadata,
    depth: u32
) -> Result<(), SparseError>
[src]

Update recusively a Sparsable pointer

fn check_depth(&self, depth: u32) -> Result<(), SparseError>[src]

Check if the current depth isn’t too much. This is the cyclic pointer protection mechanism

Loading content...

Implementations on Foreign Types

impl Sparsable for Value[src]

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

impl<'a> Sparsable for &'a str[src]

impl<'a> Sparsable for &'a [u8][src]

impl<K, V> Sparsable for HashMap<K, V> where
    V: Sparsable
[src]

impl Sparsable for bool[src]

impl Sparsable for i8[src]

impl Sparsable for i16[src]

impl Sparsable for i32[src]

impl Sparsable for i64[src]

impl Sparsable for isize[src]

impl Sparsable for u8[src]

impl Sparsable for u16[src]

impl Sparsable for u32[src]

impl Sparsable for u64[src]

impl Sparsable for i128[src]

impl Sparsable for usize[src]

impl Sparsable for f32[src]

impl Sparsable for f64[src]

impl Sparsable for char[src]

impl Sparsable for String[src]

impl Sparsable for CString[src]

impl<T> Sparsable for Vec<T> where
    T: Sparsable
[src]

impl<T> Sparsable for VecDeque<T> where
    T: Sparsable
[src]

impl<T> Sparsable for LinkedList<T> where
    T: Sparsable
[src]

Loading content...

Implementors

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

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

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

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

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

Loading content...