Enum fuzzy_pickles::ast::Expression
source · pub enum Expression {
Show 38 variants
Array(Array),
AsType(AsType),
Ascription(Ascription),
Binary(Binary),
Block(Box<Block>),
Box(ExpressionBox),
Break(Break),
Byte(Byte),
ByteString(ByteString),
Call(Call),
Character(Character),
Closure(Closure),
Continue(Continue),
Dereference(Dereference),
Disambiguation(Disambiguation),
FieldAccess(FieldAccess),
ForLoop(ForLoop),
If(If),
IfLet(IfLet),
Let(Let),
Loop(Loop),
MacroCall(MacroCall),
Match(Match),
Number(Number),
Parenthetical(Parenthetical),
Range(Range),
RangeInclusive(RangeInclusive),
Reference(Reference),
Return(Return),
Slice(Slice),
String(String),
Tuple(Tuple),
TryOperator(TryOperator),
Unary(Unary),
UnsafeBlock(UnsafeBlock),
Value(Value),
While(While),
WhileLet(WhileLet),
}
Variants§
Array(Array)
AsType(AsType)
Ascription(Ascription)
Binary(Binary)
Block(Box<Block>)
Box(ExpressionBox)
Break(Break)
Byte(Byte)
ByteString(ByteString)
Call(Call)
Character(Character)
Closure(Closure)
Continue(Continue)
Dereference(Dereference)
Disambiguation(Disambiguation)
FieldAccess(FieldAccess)
ForLoop(ForLoop)
If(If)
IfLet(IfLet)
Let(Let)
Loop(Loop)
MacroCall(MacroCall)
Match(Match)
Number(Number)
Parenthetical(Parenthetical)
Range(Range)
RangeInclusive(RangeInclusive)
Reference(Reference)
Return(Return)
Slice(Slice)
String(String)
Tuple(Tuple)
TryOperator(TryOperator)
Unary(Unary)
UnsafeBlock(UnsafeBlock)
Value(Value)
While(While)
WhileLet(WhileLet)
Implementations§
source§impl Expression
impl Expression
pub fn into_array(self) -> Option<Array>
pub fn into_as_type(self) -> Option<AsType>
pub fn into_ascription(self) -> Option<Ascription>
pub fn into_binary(self) -> Option<Binary>
pub fn into_block(self) -> Option<Box<Block>>
pub fn into_box(self) -> Option<ExpressionBox>
pub fn into_break(self) -> Option<Break>
pub fn into_byte(self) -> Option<Byte>
pub fn into_byte_string(self) -> Option<ByteString>
pub fn into_call(self) -> Option<Call>
pub fn into_character(self) -> Option<Character>
pub fn into_closure(self) -> Option<Closure>
pub fn into_continue(self) -> Option<Continue>
pub fn into_dereference(self) -> Option<Dereference>
pub fn into_disambiguation(self) -> Option<Disambiguation>
pub fn into_field_access(self) -> Option<FieldAccess>
pub fn into_for_loop(self) -> Option<ForLoop>
pub fn into_if(self) -> Option<If>
pub fn into_if_let(self) -> Option<IfLet>
pub fn into_let(self) -> Option<Let>
pub fn into_loop(self) -> Option<Loop>
pub fn into_macro_call(self) -> Option<MacroCall>
pub fn into_match(self) -> Option<Match>
pub fn into_number(self) -> Option<Number>
pub fn into_parenthetical(self) -> Option<Parenthetical>
pub fn into_range(self) -> Option<Range>
pub fn into_range_inclusive(self) -> Option<RangeInclusive>
pub fn into_reference(self) -> Option<Reference>
pub fn into_return(self) -> Option<Return>
pub fn into_slice(self) -> Option<Slice>
pub fn into_string(self) -> Option<String>
pub fn into_tuple(self) -> Option<Tuple>
pub fn into_try_operator(self) -> Option<TryOperator>
pub fn into_unary(self) -> Option<Unary>
pub fn into_unsafe_block(self) -> Option<UnsafeBlock>
pub fn into_value(self) -> Option<Value>
pub fn into_while(self) -> Option<While>
pub fn into_while_let(self) -> Option<WhileLet>
pub fn as_array(&self) -> Option<&Array>
pub fn as_as_type(&self) -> Option<&AsType>
pub fn as_ascription(&self) -> Option<&Ascription>
pub fn as_binary(&self) -> Option<&Binary>
pub fn as_block(&self) -> Option<&Box<Block>>
pub fn as_box(&self) -> Option<&ExpressionBox>
pub fn as_break(&self) -> Option<&Break>
pub fn as_byte(&self) -> Option<&Byte>
pub fn as_byte_string(&self) -> Option<&ByteString>
pub fn as_call(&self) -> Option<&Call>
pub fn as_character(&self) -> Option<&Character>
pub fn as_closure(&self) -> Option<&Closure>
pub fn as_continue(&self) -> Option<&Continue>
pub fn as_dereference(&self) -> Option<&Dereference>
pub fn as_disambiguation(&self) -> Option<&Disambiguation>
pub fn as_field_access(&self) -> Option<&FieldAccess>
pub fn as_for_loop(&self) -> Option<&ForLoop>
pub fn as_if(&self) -> Option<&If>
pub fn as_if_let(&self) -> Option<&IfLet>
pub fn as_let(&self) -> Option<&Let>
pub fn as_loop(&self) -> Option<&Loop>
pub fn as_macro_call(&self) -> Option<&MacroCall>
pub fn as_match(&self) -> Option<&Match>
pub fn as_number(&self) -> Option<&Number>
pub fn as_parenthetical(&self) -> Option<&Parenthetical>
pub fn as_range(&self) -> Option<&Range>
pub fn as_range_inclusive(&self) -> Option<&RangeInclusive>
pub fn as_reference(&self) -> Option<&Reference>
pub fn as_return(&self) -> Option<&Return>
pub fn as_slice(&self) -> Option<&Slice>
pub fn as_string(&self) -> Option<&String>
pub fn as_tuple(&self) -> Option<&Tuple>
pub fn as_try_operator(&self) -> Option<&TryOperator>
pub fn as_unary(&self) -> Option<&Unary>
pub fn as_unsafe_block(&self) -> Option<&UnsafeBlock>
pub fn as_value(&self) -> Option<&Value>
pub fn as_while(&self) -> Option<&While>
pub fn as_while_let(&self) -> Option<&WhileLet>
pub fn is_array(&self) -> bool
pub fn is_as_type(&self) -> bool
pub fn is_ascription(&self) -> bool
pub fn is_binary(&self) -> bool
pub fn is_block(&self) -> bool
pub fn is_box(&self) -> bool
pub fn is_break(&self) -> bool
pub fn is_byte(&self) -> bool
pub fn is_byte_string(&self) -> bool
pub fn is_call(&self) -> bool
pub fn is_character(&self) -> bool
pub fn is_closure(&self) -> bool
pub fn is_continue(&self) -> bool
pub fn is_dereference(&self) -> bool
pub fn is_disambiguation(&self) -> bool
pub fn is_field_access(&self) -> bool
pub fn is_for_loop(&self) -> bool
pub fn is_if(&self) -> bool
pub fn is_if_let(&self) -> bool
pub fn is_let(&self) -> bool
pub fn is_loop(&self) -> bool
pub fn is_macro_call(&self) -> bool
pub fn is_match(&self) -> bool
pub fn is_number(&self) -> bool
pub fn is_parenthetical(&self) -> bool
pub fn is_range(&self) -> bool
pub fn is_range_inclusive(&self) -> bool
pub fn is_reference(&self) -> bool
pub fn is_return(&self) -> bool
pub fn is_slice(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_tuple(&self) -> bool
pub fn is_try_operator(&self) -> bool
pub fn is_unary(&self) -> bool
pub fn is_unsafe_block(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_while(&self) -> bool
pub fn is_while_let(&self) -> bool
Trait Implementations§
source§impl Debug for Expression
impl Debug for Expression
source§impl From<Expression> for Attributed<Expression>
impl From<Expression> for Attributed<Expression>
source§fn from(value: Expression) -> Attributed<Expression>
fn from(value: Expression) -> Attributed<Expression>
Converts to this type from the input type.