pub enum Argument<'l> {
Show 18 variants
Constant(Number),
Identifier(Arcob<'l, str>),
String(Arcob<'l, str>),
Add {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Negate(Box<Argument<'l>>),
Subtract {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Multiply {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Divide {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Modulo {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Not(Box<Argument<'l>>),
BitAnd {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
BitOr {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
BitXor {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
LeftShift {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
RightShift {
lhs: Box<Argument<'l>>,
rhs: Box<Argument<'l>>,
},
Address(Box<Argument<'l>>),
Sequence(Vec<Argument<'l>>),
Function {
name: Arcob<'l, str>,
args: Vec<Argument<'l>>,
},
}Variants§
Constant(Number)
Identifier(Arcob<'l, str>)
String(Arcob<'l, str>)
Add
Negate(Box<Argument<'l>>)
Subtract
Multiply
Divide
Modulo
Not(Box<Argument<'l>>)
BitAnd
BitOr
BitXor
LeftShift
RightShift
Address(Box<Argument<'l>>)
Sequence(Vec<Argument<'l>>)
Function
Implementations§
Source§impl<'l> Argument<'l>
impl<'l> Argument<'l>
pub fn get_type(&self) -> ArgumentType
pub fn vec_into_owned(args: Vec<Self>) -> Vec<Argument<'static>>
pub fn into_owned(self) -> Argument<'static>
Trait Implementations§
Auto Trait Implementations§
impl<'l> Freeze for Argument<'l>
impl<'l> RefUnwindSafe for Argument<'l>
impl<'l> Send for Argument<'l>
impl<'l> Sync for Argument<'l>
impl<'l> Unpin for Argument<'l>
impl<'l> UnwindSafe for Argument<'l>
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