[][src]Trait sppparse::SparsableTrait

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

Required methods

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

Initialize recusively a Sparsable pointer

Loading content...

Provided methods

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

Update recusively a Sparsable pointer

pub fn check_depth(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<'a, T: 'a + Sparsable + ?Sized> Sparsable for &'a mut T[src]

impl<T: Sparsable + ?Sized> Sparsable for Box<T>[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<T> Sparsable for SparseSelector<T> where
    T: Any + DeserializeOwned + Serialize + SparsableTrait
[src]

Loading content...