[−][src]Struct sppparse::SparseMetadata
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]
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]
pub fn clone(&self) -> SparseMetadata
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SparseMetadata
[src]
impl Default for SparseMetadata
[src]
pub fn default() -> SparseMetadata
[src]
impl<'de> Deserialize<'de> for SparseMetadata
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for SparseMetadata
[src]
Auto Trait Implementations
impl RefUnwindSafe for SparseMetadata
[src]
impl Send for SparseMetadata
[src]
impl Sync for SparseMetadata
[src]
impl Unpin for SparseMetadata
[src]
impl UnwindSafe for SparseMetadata
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,