[][src]Struct liquid_value::Path

pub struct Path<'s>(_);

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]

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]

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.

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]

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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