[−][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]
impl<'s> Path<'s>
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>
ⓘ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> PartialEq<Path<'s>> for Path<'s>
[src]
impl<'s> PartialEq<Path<'s>> for Path<'s>
impl<'s> AsRef<[ScalarCow<'s>]> for Path<'s>
[src]
impl<'s> AsRef<[ScalarCow<'s>]> for Path<'s>
impl<'s> Clone for Path<'s>
[src]
impl<'s> Clone for Path<'s>
fn clone(&self) -> Path<'s> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<'s> Extend<ScalarCow<'s>> for Path<'s>
[src]
impl<'s> Extend<ScalarCow<'s>> for Path<'s>
fn extend<T: IntoIterator<Item = ScalarCow<'s>>>(&mut self, iter: T) | [src] |
impl<'s> Display for Path<'s>
[src]
impl<'s> Display for Path<'s>
impl<'s> Debug for Path<'s>
[src]
impl<'s> Debug for Path<'s>
impl<'s> Deref for Path<'s>
[src]
impl<'s> Deref for Path<'s>
type Target = [ScalarCow<'s>]
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target | [src] |
impl<'s> Borrow<[ScalarCow<'s>]> for Path<'s>
[src]
impl<'s> Borrow<[ScalarCow<'s>]> for Path<'s>
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T> From for T
[src]
impl<T> From for T
impl<T> ToString for T where
T: Display + ?Sized,
[src]
impl<T> ToString for T where
T: Display + ?Sized,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |