Struct liquid_core::runtime::Variable
source · [−]pub struct Variable { /* private fields */ }Expand description
A Value reference.
Implementations
sourceimpl Variable
impl Variable
sourcepub fn with_literal<S: Into<Scalar>>(value: S) -> Self
pub fn with_literal<S: Into<Scalar>>(value: S) -> Self
Create a Value reference.
sourcepub fn push_literal<S: Into<Scalar>>(self, value: S) -> Self
pub fn push_literal<S: Into<Scalar>>(self, value: S) -> Self
Append a literal.
sourcepub fn try_evaluate<'c>(&'c self, runtime: &'c dyn Runtime) -> Option<Path<'c>>
pub fn try_evaluate<'c>(&'c self, runtime: &'c dyn Runtime) -> Option<Path<'c>>
Convert to a Path.
Trait Implementations
sourceimpl Extend<Expression> for Variable
impl Extend<Expression> for Variable
sourcefn extend<T: IntoIterator<Item = Expression>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Expression>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬 This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬 This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl Extend<ScalarCow<'static>> for Variable
impl Extend<ScalarCow<'static>> for Variable
sourcefn extend<T: IntoIterator<Item = Scalar>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = Scalar>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬 This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬 This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl StructuralPartialEq for Variable
Auto Trait Implementations
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more