[−][src]Struct sppparse::SparseRefRaw
A raw dynamic ref
SparseRefRaw will render the pointed value.
It uses a SparseState to render itself in order to limit the IO calls at a minimum. It will deserialize into the desired type at creation.
If the SparseStateFile used to render the object changes, SparseRefRaw will deserialize it again in order to always be up to date.
Implementations
impl<S> SparseRefRaw<S>[src]
pub fn val(&self) -> &SparsePointedValue<S>[src]
The inner value
pub fn raw_pointer(&self) -> &String[src]
The raw JSON pointer, as it is deserialized
pub fn base_path(&self) -> &PathBuf[src]
The path of the file in which originates this pointer, if any
impl<S> SparseRefRaw<S>[src]
pub fn base_path_mut(&mut self) -> &mut PathBuf[src]
The path of the file in which originates this pointer, if any
impl<S> SparseRefRaw<S> where
S: DeserializeOwned + Serialize + SparsableTrait, [src]
S: DeserializeOwned + Serialize + SparsableTrait,
Trait Implementations
impl<S: Clone> Clone for SparseRefRaw<S>[src]
fn clone(&self) -> SparseRefRaw<S>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<S: Debug> Debug for SparseRefRaw<S>[src]
impl<'de, S> Deserialize<'de> for SparseRefRaw<S>[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl<S: PartialEq> PartialEq<SparseRefRaw<S>> for SparseRefRaw<S>[src]
fn eq(&self, other: &SparseRefRaw<S>) -> bool[src]
fn ne(&self, other: &SparseRefRaw<S>) -> bool[src]
impl<S> Serialize for SparseRefRaw<S>[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<S> Sparsable for SparseRefRaw<S> where
S: DeserializeOwned + Serialize + SparsableTrait, [src]
S: DeserializeOwned + Serialize + SparsableTrait,
fn sparse_init<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn sparse_updt<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
fn check_depth(&self, depth: u32) -> Result<(), SparseError>[src]
impl<S> SparsePointerRaw<S> for SparseRefRaw<S> where
S: DeserializeOwned + Serialize + SparsableTrait, [src]
S: DeserializeOwned + Serialize + SparsableTrait,
fn check_version(&self, state: &SparseState) -> Result<(), SparseError>[src]
Check that the inner version doesn't mismatch with the SparseState
fn get<'a>(
&'a self,
metadata: Option<&'a SparseMetadata>
) -> Result<SparseValue<'a, S>, SparseError>[src]
&'a self,
metadata: Option<&'a SparseMetadata>
) -> Result<SparseValue<'a, S>, SparseError>
Get the inner value, deserializing the pointed value
fn get_mut<'a>(
&'a mut self,
state_cell: Rc<RefCell<SparseState>>,
metadata: Option<&'a SparseMetadata>
) -> Result<SparseValueMut<'a, S>, SparseError>[src]
&'a mut self,
state_cell: Rc<RefCell<SparseState>>,
metadata: Option<&'a SparseMetadata>
) -> Result<SparseValueMut<'a, S>, SparseError>
fn self_reset<'a>(
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>[src]
&mut self,
state: &mut SparseState,
metadata: &SparseMetadata,
depth: u32
) -> Result<(), SparseError>
impl<S> StructuralPartialEq for SparseRefRaw<S>[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for SparseRefRaw<S> where
S: RefUnwindSafe, [src]
S: RefUnwindSafe,
impl<S> Send for SparseRefRaw<S> where
S: Send, [src]
S: Send,
impl<S> Sync for SparseRefRaw<S> where
S: Sync, [src]
S: Sync,
impl<S> Unpin for SparseRefRaw<S> where
S: Unpin, [src]
S: Unpin,
impl<S> UnwindSafe for SparseRefRaw<S> where
S: UnwindSafe, [src]
S: UnwindSafe,
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>,