Enum tree_sitter_graph::ast::Expression
source · [−]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
sourceimpl Debug for Expression
impl Debug for Expression
sourceimpl Display for Expression
impl Display for Expression
sourceimpl From<Call> for Expression
impl From<Call> for Expression
sourcefn from(expr: Call) -> Expression
fn from(expr: Call) -> Expression
Converts to this type from the input type.
sourceimpl From<Capture> for Expression
impl From<Capture> for Expression
sourcefn from(expr: Capture) -> Expression
fn from(expr: Capture) -> Expression
Converts to this type from the input type.
sourceimpl From<IntegerConstant> for Expression
impl From<IntegerConstant> for Expression
sourcefn from(expr: IntegerConstant) -> Expression
fn from(expr: IntegerConstant) -> Expression
Converts to this type from the input type.
sourceimpl From<ListComprehension> for Expression
impl From<ListComprehension> for Expression
sourcefn from(expr: ListComprehension) -> Expression
fn from(expr: ListComprehension) -> Expression
Converts to this type from the input type.
sourceimpl From<ListLiteral> for Expression
impl From<ListLiteral> for Expression
sourcefn from(expr: ListLiteral) -> Expression
fn from(expr: ListLiteral) -> Expression
Converts to this type from the input type.
sourceimpl From<RegexCapture> for Expression
impl From<RegexCapture> for Expression
sourcefn from(expr: RegexCapture) -> Expression
fn from(expr: RegexCapture) -> Expression
Converts to this type from the input type.
sourceimpl From<ScopedVariable> for Expression
impl From<ScopedVariable> for Expression
sourcefn from(variable: ScopedVariable) -> Expression
fn from(variable: ScopedVariable) -> Expression
Converts to this type from the input type.
sourceimpl From<SetComprehension> for Expression
impl From<SetComprehension> for Expression
sourcefn from(expr: SetComprehension) -> Expression
fn from(expr: SetComprehension) -> Expression
Converts to this type from the input type.
sourceimpl From<SetLiteral> for Expression
impl From<SetLiteral> for Expression
sourcefn from(expr: SetLiteral) -> Expression
fn from(expr: SetLiteral) -> Expression
Converts to this type from the input type.
sourceimpl From<String> for Expression
impl From<String> for Expression
sourcefn from(value: String) -> Expression
fn from(value: String) -> Expression
Converts to this type from the input type.
sourceimpl From<StringConstant> for Expression
impl From<StringConstant> for Expression
sourcefn from(expr: StringConstant) -> Expression
fn from(expr: StringConstant) -> Expression
Converts to this type from the input type.
sourceimpl From<UnscopedVariable> for Expression
impl From<UnscopedVariable> for Expression
sourcefn from(variable: UnscopedVariable) -> Expression
fn from(variable: UnscopedVariable) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<Expression> for Expression
impl PartialEq<Expression> for Expression
sourcefn eq(&self, other: &Expression) -> bool
fn eq(&self, other: &Expression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &Expression) -> bool
fn ne(&self, other: &Expression) -> bool
This method tests for !=.
impl Eq for Expression
impl StructuralEq for Expression
impl StructuralPartialEq for Expression
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl !Send for Expression
impl !Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
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