[−][src]Struct liquid_value::Path
Path to a value in an Object
.
There is guaranteed always at least one element.
Methods
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.
ⓘImportant traits for PathIter<'i, 's>pub fn iter(&self) -> PathIter
[src]
ⓘImportant traits for PathIter<'i, 's>
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> Extend<ScalarCow<'s>> for Path<'s>
[src]
fn extend<T: IntoIterator<Item = ScalarCow<'s>>>(&mut self, iter: T)
[src]
impl<'s> Clone for Path<'s>
[src]
impl<'s> PartialEq<Path<'s>> for Path<'s>
[src]
impl<'s> Display 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> StructuralPartialEq for Path<'s>
[src]
impl<'s> Borrow<[ScalarCow<'s>]> for Path<'s>
[src]
Auto Trait Implementations
impl<'s> Send for Path<'s>
impl<'s> Sync for Path<'s>
impl<'s> Unpin for Path<'s>
impl<'s> UnwindSafe for Path<'s>
impl<'s> RefUnwindSafe for Path<'s>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,