[−][src]Struct balena_temen::ast::Expression
An expression
Fields
value: ExpressionValue
An expression value
negated: bool
Is expression negated?
filters: Vec<FunctionCall>
List of filters to apply
Methods
impl Expression
[src]
pub fn new(value: ExpressionValue) -> Expression
[src]
Creates new expression
Expression is not negated and no filters are applied.
Arguments
value
- An expression value
pub fn new_negated(value: ExpressionValue) -> Expression
[src]
Creates new negated expression
Expression is negated and no filters are applied.
Arguments
value
- An expression value
pub fn new_with_filters(
value: ExpressionValue,
filters: Vec<FunctionCall>
) -> Expression
[src]
value: ExpressionValue,
filters: Vec<FunctionCall>
) -> Expression
Creates new expression
Expression is not negated and filters are applied.
Arguments
value
- An expression valuefilters
- List of filters to apply
pub fn into_negated(self) -> Expression
[src]
Converts self into negated expression
pub fn identifier(&self) -> Option<&Identifier>
[src]
Returns identifier from an expression value
pub fn into_identifier(self) -> Result<Identifier>
[src]
Converts self into Identifier
Trait Implementations
impl PartialEq<Expression> for Expression
[src]
fn eq(&self, other: &Expression) -> bool
[src]
fn ne(&self, other: &Expression) -> bool
[src]
impl Clone for Expression
[src]
fn clone(&self) -> Expression
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Expression
[src]
impl FromStr for Expression
[src]
Auto Trait Implementations
impl Send for Expression
impl Sync for Expression
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,