[−][src]Struct liquid_core::model::find::Path
Path to a value in an Object.
There is guaranteed always at least one element.
Implementations
impl<'s> Path<'s>[src]
pub fn with_index<I: Into<ScalarCow<'s>>>(value: I) -> Self[src]
Create a Value reference.
pub fn push<I: Into<ScalarCow<'s>>>(&mut self, value: I)[src]
Append an index.
pub fn reserve(&mut self, additional: usize)[src]
Reserves capacity for at least additional more elements to be inserted
in the given Path. The Path may reserve more space to avoid
frequent reallocations. After calling reserve, capacity will be
greater than or equal to self.len() + additional. Does nothing if
capacity is already sufficient.
pub fn iter(&self) -> PathIter[src]
Access the Value reference.
pub fn as_slice(&self) -> &[ScalarCow<'s>][src]
Extracts a slice containing the entire vector.
Trait Implementations
impl<'s> AsRef<[ScalarCow<'s>]> for Path<'s>[src]
impl<'s> Borrow<[ScalarCow<'s>]> for Path<'s>[src]
impl<'s> Clone for Path<'s>[src]
impl<'s> Debug for Path<'s>[src]
impl<'s> Deref for Path<'s>[src]
type Target = [ScalarCow<'s>]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target[src]
impl<'s> Display for Path<'s>[src]
impl<'s> Extend<ScalarCow<'s>> for Path<'s>[src]
fn extend<T: IntoIterator<Item = ScalarCow<'s>>>(&mut self, iter: T)[src]
fn extend_one(&mut self, item: A)[src]
fn extend_reserve(&mut self, additional: usize)[src]
impl<'s> PartialEq<Path<'s>> for Path<'s>[src]
impl<'s> StructuralPartialEq for Path<'s>[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for Path<'s>
impl<'s> Send for Path<'s>
impl<'s> Sync for Path<'s>
impl<'s> Unpin for Path<'s>
impl<'s> UnwindSafe for Path<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any, [src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> CloneAny for T where
T: Clone + Any, [src]
T: Clone + Any,
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.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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.
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>,