pub struct SparseValueMut<'a, S> { /* private fields */ }Expand description
§A value extracted from a SparsePointer (mutable)
Implementations§
Source§impl<'a, S> SparseValueMut<'a, S>
impl<'a, S> SparseValueMut<'a, S>
Source§impl<'a, S> SparseValueMut<'a, S>
impl<'a, S> SparseValueMut<'a, S>
pub fn version_mut(&mut self) -> &mut Option<u64>
Source§impl<'a, S> SparseValueMut<'a, S>
impl<'a, S> SparseValueMut<'a, S>
pub fn try_deref_raw_pointer<T: 'static + DeserializeOwned + Serialize + SparsableTrait>( curr: &SparseValueMut<'_, S>, ptr: String, state_cell: Rc<RefCell<SparseState>>, ) -> Result<SparseSelector<T>, SparseError>
Sourcepub fn sparse_save(&self) -> Result<(), SparseError>
pub fn sparse_save(&self) -> Result<(), SparseError>
Persists the object to the state.
One should call sparse_updt on the root after saving something in the state.
Trait Implementations§
Source§impl<'a, S: Debug> Debug for SparseValueMut<'a, S>
impl<'a, S: Debug> Debug for SparseValueMut<'a, S>
Source§impl<'a, S> Deref for SparseValueMut<'a, S>
impl<'a, S> Deref for SparseValueMut<'a, S>
Source§impl<'a, S> DerefMut for SparseValueMut<'a, S>
impl<'a, S> DerefMut for SparseValueMut<'a, S>
Source§impl<'a, S> Display for SparseValueMut<'a, S>
impl<'a, S> Display for SparseValueMut<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for SparseValueMut<'a, S>
impl<'a, S> !RefUnwindSafe for SparseValueMut<'a, S>
impl<'a, S> !Send for SparseValueMut<'a, S>
impl<'a, S> !Sync for SparseValueMut<'a, S>
impl<'a, S> Unpin for SparseValueMut<'a, S>
impl<'a, S> !UnwindSafe for SparseValueMut<'a, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more