pub enum Expression {
Show 13 variants
FalseLiteral,
NullLiteral,
TrueLiteral,
IntegerConstant(IntegerConstant),
StringConstant(StringConstant),
ListLiteral(ListLiteral),
SetLiteral(SetLiteral),
ListComprehension(ListComprehension),
SetComprehension(SetComprehension),
Capture(Capture),
Variable(Variable),
Call(Call),
RegexCapture(RegexCapture),
}Expand description
An expression that can appear in a graph DSL file
Variants§
FalseLiteral
NullLiteral
TrueLiteral
IntegerConstant(IntegerConstant)
StringConstant(StringConstant)
ListLiteral(ListLiteral)
SetLiteral(SetLiteral)
ListComprehension(ListComprehension)
SetComprehension(SetComprehension)
Capture(Capture)
Variable(Variable)
Call(Call)
RegexCapture(RegexCapture)
Trait Implementations§
Source§impl Debug for Expression
impl Debug for Expression
Source§impl Display for Expression
impl Display for Expression
Source§impl From<Call> for Expression
impl From<Call> for Expression
Source§fn from(expr: Call) -> Expression
fn from(expr: Call) -> Expression
Converts to this type from the input type.
Source§impl From<Capture> for Expression
impl From<Capture> for Expression
Source§fn from(expr: Capture) -> Expression
fn from(expr: Capture) -> Expression
Converts to this type from the input type.
Source§impl From<IntegerConstant> for Expression
impl From<IntegerConstant> for Expression
Source§fn from(expr: IntegerConstant) -> Expression
fn from(expr: IntegerConstant) -> Expression
Converts to this type from the input type.
Source§impl From<ListComprehension> for Expression
impl From<ListComprehension> for Expression
Source§fn from(expr: ListComprehension) -> Expression
fn from(expr: ListComprehension) -> Expression
Converts to this type from the input type.
Source§impl From<ListLiteral> for Expression
impl From<ListLiteral> for Expression
Source§fn from(expr: ListLiteral) -> Expression
fn from(expr: ListLiteral) -> Expression
Converts to this type from the input type.
Source§impl From<RegexCapture> for Expression
impl From<RegexCapture> for Expression
Source§fn from(expr: RegexCapture) -> Expression
fn from(expr: RegexCapture) -> Expression
Converts to this type from the input type.
Source§impl From<ScopedVariable> for Expression
impl From<ScopedVariable> for Expression
Source§fn from(variable: ScopedVariable) -> Expression
fn from(variable: ScopedVariable) -> Expression
Converts to this type from the input type.
Source§impl From<SetComprehension> for Expression
impl From<SetComprehension> for Expression
Source§fn from(expr: SetComprehension) -> Expression
fn from(expr: SetComprehension) -> Expression
Converts to this type from the input type.
Source§impl From<SetLiteral> for Expression
impl From<SetLiteral> for Expression
Source§fn from(expr: SetLiteral) -> Expression
fn from(expr: SetLiteral) -> Expression
Converts to this type from the input type.
Source§impl From<String> for Expression
impl From<String> for Expression
Source§fn from(value: String) -> Expression
fn from(value: String) -> Expression
Converts to this type from the input type.
Source§impl From<StringConstant> for Expression
impl From<StringConstant> for Expression
Source§fn from(expr: StringConstant) -> Expression
fn from(expr: StringConstant) -> Expression
Converts to this type from the input type.
Source§impl From<UnscopedVariable> for Expression
impl From<UnscopedVariable> for Expression
Source§fn from(variable: UnscopedVariable) -> Expression
fn from(variable: UnscopedVariable) -> Expression
Converts to this type from the input type.
Source§impl PartialEq for Expression
impl PartialEq for Expression
impl Eq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations§
impl Freeze for Expression
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more