[][src]Struct sppparse::SparseMetadata

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]

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]

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]

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.

impl SparseMetadata[src]

pub fn normalize_path(
    path: PathBuf,
    base_path: PathBuf
) -> Result<PathBuf, SparseError>
[src]

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 Debug for SparseMetadata[src]

impl Default for SparseMetadata[src]

impl<'de> Deserialize<'de> for SparseMetadata[src]

impl Serialize for SparseMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,