Struct sppparse::SparseMetadata [−][src]
pub struct SparseMetadata { /* fields omitted */ }
Metadata about the pointer
SparseMetadata store crucial information like the file the pointer is pointing, the inner pointer inside that file and the last correct version of the file since the last update.
Implementations
impl SparseMetadata
[src]
impl SparseMetadata
[src]pub fn pfile_path(&self) -> &PathBuf
[src]
The parent file path, if not in-memory
pub fn raw_pointer(&self) -> &String
[src]
The pointer string, as it is set in the original Value
pub fn pointer(&self) -> &String
[src]
The parsed pointer, if any
impl SparseMetadata
[src]
impl SparseMetadata
[src]pub fn version(&self) -> u64
[src]
The last version the deserialized value, if any. If that version mismatch with the one in SparseState, it will force SparseRef to parse the value again to update it.
impl SparseMetadata
[src]
impl SparseMetadata
[src]pub fn version_mut(&mut self) -> &mut u64
[src]
The last version the deserialized value, if any. If that version mismatch with the one in SparseState, it will force SparseRef to parse the value again to update it.
pub fn raw_pointer_mut(&mut self) -> &mut String
[src]
The pointer string, as it is set in the original Value
impl SparseMetadata
[src]
impl SparseMetadata
[src]pub fn normalize_path(
path: PathBuf,
base_path: PathBuf
) -> Result<PathBuf, SparseError>
[src]
path: PathBuf,
base_path: PathBuf
) -> Result<PathBuf, SparseError>
Make a base absolute, using base_path
as the current working directory
pub fn new(raw_ptr: String, path: PathBuf) -> Self
[src]
Create a new SparseMetadata
Trait Implementations
impl Clone for SparseMetadata
[src]
impl Clone for SparseMetadata
[src]fn clone(&self) -> SparseMetadata
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for SparseMetadata
[src]
impl Default for SparseMetadata
[src]fn default() -> SparseMetadata
[src]
impl<'de> Deserialize<'de> for SparseMetadata
[src]
impl<'de> Deserialize<'de> for SparseMetadata
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<SparseMetadata> for SparseMetadata
[src]
impl PartialEq<SparseMetadata> for SparseMetadata
[src]fn eq(&self, other: &SparseMetadata) -> bool
[src]
fn ne(&self, other: &SparseMetadata) -> bool
[src]
impl Serialize for SparseMetadata
[src]
impl Serialize for SparseMetadata
[src]impl StructuralPartialEq for SparseMetadata
[src]
impl StructuralPartialEq for SparseMetadata
[src]Auto Trait Implementations
impl RefUnwindSafe for SparseMetadata
impl RefUnwindSafe for SparseMetadata
impl Send for SparseMetadata
impl Send for SparseMetadata
impl Sync for SparseMetadata
impl Sync for SparseMetadata
impl Unpin for SparseMetadata
impl Unpin for SparseMetadata
impl UnwindSafe for SparseMetadata
impl UnwindSafe for SparseMetadata