pub struct SparseStateFile { /* private fields */ }
Expand description
§A document in the state
Implementations§
Source§impl SparseStateFile
impl SparseStateFile
Sourcepub fn new(val: Value, ftype: SparseFileFormat) -> Self
pub fn new(val: Value, ftype: SparseFileFormat) -> Self
Create a new state file providing the Value.
Sourcepub fn bump_version(&mut self)
pub fn bump_version(&mut self)
Increase the internal version by 1
Sourcepub fn replace(&mut self, val: Value)
pub fn replace(&mut self, val: Value)
Replace the Value of the SparseStateFile and increment its version.
Trait Implementations§
Source§impl Clone for SparseStateFile
impl Clone for SparseStateFile
Source§fn clone(&self) -> SparseStateFile
fn clone(&self) -> SparseStateFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for SparseStateFile
impl RefUnwindSafe for SparseStateFile
impl Send for SparseStateFile
impl Sync for SparseStateFile
impl Unpin for SparseStateFile
impl UnwindSafe for SparseStateFile
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