pub enum ExprKind {
Show 35 variants
Array(Array),
Call(Call),
MethodCall(MethodCall),
Tuple(Tuple),
Binary(Binary),
Unary(Unary),
Lit(Lit),
Cast(Cast),
TypeAscription(TypeAscription),
Let(Let),
If(If),
While(While),
ForLoop(ForLoop),
Loop(Loop),
Match(Match),
Closure(Closure),
Block(Block),
Async(Async),
Await(Await),
TryBlock(TryBlock),
Assign(Assign),
AssignOp(AssignOp),
Field(Field),
Index(Index),
Range(Range),
Underscore(Underscore),
Path(Path),
AddrOf(AddrOf),
Break(Break),
Continue(Continue),
Return(Return),
MacCall(MacCall),
Struct(Struct),
Repeat(Repeat),
Try(Try),
}Variants§
Array(Array)
Call(Call)
MethodCall(MethodCall)
Tuple(Tuple)
Binary(Binary)
Unary(Unary)
Lit(Lit)
Cast(Cast)
TypeAscription(TypeAscription)
Let(Let)
If(If)
While(While)
ForLoop(ForLoop)
Loop(Loop)
Match(Match)
Closure(Closure)
Block(Block)
Async(Async)
Await(Await)
TryBlock(TryBlock)
Assign(Assign)
AssignOp(AssignOp)
Field(Field)
Index(Index)
Range(Range)
Underscore(Underscore)
Path(Path)
AddrOf(AddrOf)
Break(Break)
Continue(Continue)
Return(Return)
MacCall(MacCall)
Struct(Struct)
Repeat(Repeat)
Try(Try)
Trait Implementations§
source§impl From<ExprKind> for TokenStream
impl From<ExprKind> for TokenStream
source§impl From<MethodCall> for ExprKind
impl From<MethodCall> for ExprKind
source§fn from(item: MethodCall) -> Self
fn from(item: MethodCall) -> Self
Converts to this type from the input type.
source§impl From<TypeAscription> for ExprKind
impl From<TypeAscription> for ExprKind
source§fn from(item: TypeAscription) -> Self
fn from(item: TypeAscription) -> Self
Converts to this type from the input type.
source§impl From<Underscore> for ExprKind
impl From<Underscore> for ExprKind
source§fn from(item: Underscore) -> Self
fn from(item: Underscore) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExprKind
impl PartialEq for ExprKind
impl Eq for ExprKind
impl StructuralEq for ExprKind
impl StructuralPartialEq for ExprKind
Auto Trait Implementations§
impl RefUnwindSafe for ExprKind
impl Send for ExprKind
impl Sync for ExprKind
impl Unpin for ExprKind
impl UnwindSafe for ExprKind
Blanket Implementations§
source§impl<E> Accessible for Ewhere
E: Into<Expr>,
impl<E> Accessible for Ewhere E: Into<Expr>,
source§impl<E> Assignable for Ewhere
E: Into<Expr>,
impl<E> Assignable for Ewhere E: Into<Expr>,
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