pub enum RouteAction {
VarDeclaration(String, Box<RouteAction>),
FunctionCall {
object: Option<String>,
name: String,
args: Vec<Box<RouteAction>>,
try_operator: bool,
unwrap_operator: bool,
},
Condition {
check: Box<RouteAction>,
then_branch: Vec<Box<RouteAction>>,
else_branch: Option<Vec<Box<RouteAction>>>,
},
StringLiteral(String),
NumberLiteral(i64),
Identifier(String),
BinaryOp {
left: Box<RouteAction>,
operator: String,
right: Box<RouteAction>,
},
PropertyAccess {
object: Box<RouteAction>,
property: String,
},
Error(String),
}Variants§
VarDeclaration(String, Box<RouteAction>)
FunctionCall
Fields
§
args: Vec<Box<RouteAction>>Condition
Fields
§
check: Box<RouteAction>§
then_branch: Vec<Box<RouteAction>>§
else_branch: Option<Vec<Box<RouteAction>>>StringLiteral(String)
NumberLiteral(i64)
Identifier(String)
BinaryOp
PropertyAccess
Error(String)
Trait Implementations§
Source§impl Clone for RouteAction
impl Clone for RouteAction
Source§fn clone(&self) -> RouteAction
fn clone(&self) -> RouteAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RouteAction
impl RefUnwindSafe for RouteAction
impl Send for RouteAction
impl Sync for RouteAction
impl Unpin for RouteAction
impl UnwindSafe for RouteAction
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