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]
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<'de, S> Deserialize<'de> for SparseRef<S>
[src]
impl<'de, S> Deserialize<'de> for SparseRef<S>
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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>
fn check_depth(&self, depth: u32) -> Result<(), SparseError>
[src]
impl<S> SparsePointer<S> for SparseRef<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]
impl<S> SparsePointer<S> for SparseRef<S> where
S: DeserializeOwned + Serialize + SparsableTrait,
[src]fn check_version<'a>(
&'a self,
state: &'a SparseState
) -> Result<(), SparseError>
[src]
&'a self,
state: &'a SparseState
) -> Result<(), SparseError>
fn get(&self) -> Result<SparseValue<'_, S>, SparseError>
[src]
fn get_mut(
&mut self,
state_cell: Rc<RefCell<SparseState>>
) -> Result<SparseValueMut<'_, S>, SparseError>
[src]
&mut self,
state_cell: Rc<RefCell<SparseState>>
) -> Result<SparseValueMut<'_, S>, SparseError>
fn self_reset(
&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> StructuralPartialEq for SparseRef<S>
[src]
impl<S> StructuralPartialEq for SparseRef<S>
[src]Auto Trait Implementations
impl<S> RefUnwindSafe for SparseRef<S> where
S: RefUnwindSafe,
impl<S> RefUnwindSafe for SparseRef<S> where
S: RefUnwindSafe,
impl<S> UnwindSafe for SparseRef<S> where
S: UnwindSafe,
impl<S> UnwindSafe for SparseRef<S> where
S: UnwindSafe,