Enum tree_sitter_graph::ast::Expression
source · [−]pub enum Expression {
FalseLiteral,
NullLiteral,
TrueLiteral,
IntegerConstant(IntegerConstant),
StringConstant(StringConstant),
List(ListComprehension),
Set(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)
List(ListComprehension)
Set(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
Performs the conversion.
sourceimpl From<Capture> for Expression
impl From<Capture> for Expression
sourcefn from(expr: Capture) -> Expression
fn from(expr: Capture) -> Expression
Performs the conversion.
sourceimpl From<IntegerConstant> for Expression
impl From<IntegerConstant> for Expression
sourcefn from(expr: IntegerConstant) -> Expression
fn from(expr: IntegerConstant) -> Expression
Performs the conversion.
sourceimpl From<ListComprehension> for Expression
impl From<ListComprehension> for Expression
sourcefn from(expr: ListComprehension) -> Expression
fn from(expr: ListComprehension) -> Expression
Performs the conversion.
sourceimpl From<RegexCapture> for Expression
impl From<RegexCapture> for Expression
sourcefn from(expr: RegexCapture) -> Expression
fn from(expr: RegexCapture) -> Expression
Performs the conversion.
sourceimpl From<ScopedVariable> for Expression
impl From<ScopedVariable> for Expression
sourcefn from(variable: ScopedVariable) -> Expression
fn from(variable: ScopedVariable) -> Expression
Performs the conversion.
sourceimpl From<SetComprehension> for Expression
impl From<SetComprehension> for Expression
sourcefn from(expr: SetComprehension) -> Expression
fn from(expr: SetComprehension) -> Expression
Performs the conversion.
sourceimpl From<String> for Expression
impl From<String> for Expression
sourcefn from(value: String) -> Expression
fn from(value: String) -> Expression
Performs the conversion.
sourceimpl From<StringConstant> for Expression
impl From<StringConstant> for Expression
sourcefn from(expr: StringConstant) -> Expression
fn from(expr: StringConstant) -> Expression
Performs the conversion.
sourceimpl From<UnscopedVariable> for Expression
impl From<UnscopedVariable> for Expression
sourcefn from(variable: UnscopedVariable) -> Expression
fn from(variable: UnscopedVariable) -> Expression
Performs the conversion.
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 · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more