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]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
Initialize recusively a Sparsable pointer
Provided methods
fn sparse_updt(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
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
Implementations on Foreign Types
impl Sparsable for Value
[src]
impl Sparsable for Value
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl<T> Sparsable for Option<T> where
T: Serialize + DeserializeOwned + SparsableTrait,
[src]
impl<T> Sparsable for Option<T> where
T: Serialize + DeserializeOwned + SparsableTrait,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&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>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<'a> Sparsable for &'a str
[src]
impl<'a> Sparsable for &'a str
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl<'a> Sparsable for &'a [u8]
[src]
impl<'a> Sparsable for &'a [u8]
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl<K, V> Sparsable for HashMap<K, V> where
V: Sparsable,
[src]
impl<K, V> Sparsable for HashMap<K, V> where
V: Sparsable,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl Sparsable for bool
[src]
impl Sparsable for bool
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for i8
[src]
impl Sparsable for i8
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for i16
[src]
impl Sparsable for i16
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for i32
[src]
impl Sparsable for i32
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for i64
[src]
impl Sparsable for i64
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for isize
[src]
impl Sparsable for isize
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for u8
[src]
impl Sparsable for u8
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for u16
[src]
impl Sparsable for u16
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for u32
[src]
impl Sparsable for u32
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for u64
[src]
impl Sparsable for u64
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for i128
[src]
impl Sparsable for i128
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for usize
[src]
impl Sparsable for usize
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for f32
[src]
impl Sparsable for f32
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for f64
[src]
impl Sparsable for f64
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for char
[src]
impl Sparsable for char
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for String
[src]
impl Sparsable for String
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl Sparsable for CString
[src]
impl Sparsable for CString
[src]fn sparse_init(
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
_state: &mut SparseState,
_metadata: &SparseMetadata,
_depth: u32
) -> Result<(), SparseError>
impl<T> Sparsable for Vec<T> where
T: Sparsable,
[src]
impl<T> Sparsable for Vec<T> where
T: Sparsable,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<T> Sparsable for VecDeque<T> where
T: Sparsable,
[src]
impl<T> Sparsable for VecDeque<T> where
T: Sparsable,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<T> Sparsable for LinkedList<T> where
T: Sparsable,
[src]
impl<T> Sparsable for LinkedList<T> where
T: Sparsable,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
Implementors
impl<S> Sparsable for SparsePointedValue<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<S> Sparsable for SparsePointedValue<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<S> Sparsable for SparseRef<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<S> Sparsable for SparseRef<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<S> Sparsable for SparseRefRaw<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<S> Sparsable for SparseRefRaw<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]fn sparse_init<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<S> Sparsable for SparseRefRawInline<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<S> Sparsable for SparseRefRawInline<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]fn sparse_init(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<T> Sparsable for SparseSelector<T> where
T: Any + DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<T> Sparsable for SparseSelector<T> where
T: Any + DeserializeOwned + Serialize + SparsableTrait,
[src]fn sparse_init<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>