pub enum ExprKind {
Show 25 variants
Int(i64),
Float(f64),
Bool(bool),
String(Rc<str>),
Interpolate(Vec<Segment>),
State(StateId),
Local(LocalId),
List(Vec<Expr>),
Construct(StructId, Vec<Expr>),
Field(Box<Expr>, usize),
Index(Box<Expr>, Box<Expr>),
Not(Box<Expr>),
Negate(Box<Expr>),
Binary(BinaryOp, Box<Expr>, Box<Expr>),
Call(FnId, Vec<Expr>),
Len(Box<Expr>),
IsEmpty(Box<Expr>),
Push(Place, Box<Expr>),
Remove(Place, Box<Expr>),
Download(Box<Download>),
FormatBytes(Box<Expr>),
DownloadCommand(DownloadCommand, Box<Expr>),
Dialog(Box<Dialog>),
Window(WindowAction, WindowId),
Error,
}Variants§
Int(i64)
Float(f64)
Bool(bool)
String(Rc<str>)
Interpolate(Vec<Segment>)
State(StateId)
Local(LocalId)
List(Vec<Expr>)
Construct(StructId, Vec<Expr>)
Field(Box<Expr>, usize)
Index(Box<Expr>, Box<Expr>)
Not(Box<Expr>)
Negate(Box<Expr>)
Binary(BinaryOp, Box<Expr>, Box<Expr>)
Call(FnId, Vec<Expr>)
Len(Box<Expr>)
IsEmpty(Box<Expr>)
Push(Place, Box<Expr>)
Remove(Place, Box<Expr>)
Download(Box<Download>)
FormatBytes(Box<Expr>)
format_bytes(n): the size n bytes as text.
DownloadCommand(DownloadCommand, Box<Expr>)
cancel_download(id) and the like, done once the event finishes.
Dialog(Box<Dialog>)
Window(WindowAction, WindowId)
open_window(…) or close_window(…), which happens once the event finishes.
Error
Stands in for an expression with an error; never evaluated.
Trait Implementations§
Auto Trait Implementations§
impl !Send for ExprKind
impl !Sync for ExprKind
impl Freeze for ExprKind
impl RefUnwindSafe for ExprKind
impl Unpin for ExprKind
impl UnsafeUnpin for ExprKind
impl UnwindSafe for ExprKind
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