Enum nu_protocol::ast::Expr
source · [−]pub enum Expr {
Show 30 variants
Bool(bool),
Int(i64),
Float(f64),
Binary(Vec<u8>),
Range(Option<Box<Expression>>, Option<Box<Expression>>, Option<Box<Expression>>, RangeOperator),
Var(VarId),
VarDecl(VarId),
Call(Box<Call>),
ExternalCall(Box<Expression>, Vec<Expression>),
Operator(Operator),
RowCondition(BlockId),
BinaryOp(Box<Expression>, Box<Expression>, Box<Expression>),
Subexpression(BlockId),
Block(BlockId),
List(Vec<Expression>),
Table(Vec<Expression>, Vec<Vec<Expression>>),
Record(Vec<(Expression, Expression)>),
Keyword(Vec<u8>, Span, Box<Expression>),
ValueWithUnit(Box<Expression>, Spanned<Unit>),
DateTime(DateTime<FixedOffset>),
Filepath(String),
GlobPattern(String),
String(String),
CellPath(CellPath),
FullCellPath(Box<FullCellPath>),
ImportPattern(ImportPattern),
Signature(Box<Signature>),
StringInterpolation(Vec<Expression>),
Nothing,
Garbage,
}Variants
Bool(bool)
Int(i64)
Float(f64)
Binary(Vec<u8>)
Range(Option<Box<Expression>>, Option<Box<Expression>>, Option<Box<Expression>>, RangeOperator)
Var(VarId)
VarDecl(VarId)
Call(Box<Call>)
ExternalCall(Box<Expression>, Vec<Expression>)
Operator(Operator)
RowCondition(BlockId)
BinaryOp(Box<Expression>, Box<Expression>, Box<Expression>)
Subexpression(BlockId)
Block(BlockId)
List(Vec<Expression>)
Table(Vec<Expression>, Vec<Vec<Expression>>)
Record(Vec<(Expression, Expression)>)
Keyword(Vec<u8>, Span, Box<Expression>)
ValueWithUnit(Box<Expression>, Spanned<Unit>)
DateTime(DateTime<FixedOffset>)
Filepath(String)
GlobPattern(String)
String(String)
CellPath(CellPath)
FullCellPath(Box<FullCellPath>)
ImportPattern(ImportPattern)
Signature(Box<Signature>)
StringInterpolation(Vec<Expression>)
Nothing
Garbage
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Expr
impl<'de> Deserialize<'de> for Expr
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Expr
Auto Trait Implementations
impl RefUnwindSafe for Expr
impl Send for Expr
impl Sync for Expr
impl Unpin for Expr
impl UnwindSafe for Expr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Serialize for T where
T: Serialize + ?Sized,
impl<T> Serialize for T where
T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more