pub enum Item {
Show 19 variants
Ident(Ident),
Literal(Literal),
Assign(NamedExpr),
NamedArg(NamedExpr),
Query(Query),
Pipeline(Pipeline),
Transform(Transform),
List(Vec<Node>),
Range(Range),
Binary {
left: Box<Node>,
op: BinOp,
right: Box<Node>,
},
Unary {
op: UnOp,
expr: Box<Node>,
},
FuncDef(FuncDef),
FuncCall(FuncCall),
Type(Ty),
Table(Table),
SString(Vec<InterpolateItem>),
FString(Vec<InterpolateItem>),
Interval(Interval),
Windowed(Windowed),
}Variants
Ident(Ident)
Literal(Literal)
Assign(NamedExpr)
NamedArg(NamedExpr)
Query(Query)
Pipeline(Pipeline)
Transform(Transform)
List(Vec<Node>)
Range(Range)
Binary
Unary
FuncDef(FuncDef)
FuncCall(FuncCall)
Type(Ty)
Table(Table)
SString(Vec<InterpolateItem>)
FString(Vec<InterpolateItem>)
Interval(Interval)
Windowed(Windowed)
Implementations
sourceimpl Item
impl Item
sourcepub fn as_ident_mut(&mut self) -> Option<&mut Ident>
pub fn as_ident_mut(&mut self) -> Option<&mut Ident>
Optionally returns mutable references to the inner fields if this is a Item::Ident, otherwise None
sourcepub fn as_ident(&self) -> Option<&Ident>
pub fn as_ident(&self) -> Option<&Ident>
Optionally returns references to the inner fields if this is a Item::Ident, otherwise None
sourcepub fn into_ident(self) -> Result<Ident, Self>
pub fn into_ident(self) -> Result<Ident, Self>
Returns the inner fields if this is a Item::Ident, otherwise returns back the enum in the Err case of the result
sourcepub fn as_literal_mut(&mut self) -> Option<&mut Literal>
pub fn as_literal_mut(&mut self) -> Option<&mut Literal>
Optionally returns mutable references to the inner fields if this is a Item::Literal, otherwise None
sourcepub fn as_literal(&self) -> Option<&Literal>
pub fn as_literal(&self) -> Option<&Literal>
Optionally returns references to the inner fields if this is a Item::Literal, otherwise None
sourcepub fn into_literal(self) -> Result<Literal, Self>
pub fn into_literal(self) -> Result<Literal, Self>
Returns the inner fields if this is a Item::Literal, otherwise returns back the enum in the Err case of the result
sourcepub fn as_assign_mut(&mut self) -> Option<&mut NamedExpr>
pub fn as_assign_mut(&mut self) -> Option<&mut NamedExpr>
Optionally returns mutable references to the inner fields if this is a Item::Assign, otherwise None
sourcepub fn as_assign(&self) -> Option<&NamedExpr>
pub fn as_assign(&self) -> Option<&NamedExpr>
Optionally returns references to the inner fields if this is a Item::Assign, otherwise None
sourcepub fn into_assign(self) -> Result<NamedExpr, Self>
pub fn into_assign(self) -> Result<NamedExpr, Self>
Returns the inner fields if this is a Item::Assign, otherwise returns back the enum in the Err case of the result
sourcepub fn as_named_arg_mut(&mut self) -> Option<&mut NamedExpr>
pub fn as_named_arg_mut(&mut self) -> Option<&mut NamedExpr>
Optionally returns mutable references to the inner fields if this is a Item::NamedArg, otherwise None
sourcepub fn as_named_arg(&self) -> Option<&NamedExpr>
pub fn as_named_arg(&self) -> Option<&NamedExpr>
Optionally returns references to the inner fields if this is a Item::NamedArg, otherwise None
sourcepub fn into_named_arg(self) -> Result<NamedExpr, Self>
pub fn into_named_arg(self) -> Result<NamedExpr, Self>
Returns the inner fields if this is a Item::NamedArg, otherwise returns back the enum in the Err case of the result
sourcepub fn as_query_mut(&mut self) -> Option<&mut Query>
pub fn as_query_mut(&mut self) -> Option<&mut Query>
Optionally returns mutable references to the inner fields if this is a Item::Query, otherwise None
sourcepub fn as_query(&self) -> Option<&Query>
pub fn as_query(&self) -> Option<&Query>
Optionally returns references to the inner fields if this is a Item::Query, otherwise None
sourcepub fn into_query(self) -> Result<Query, Self>
pub fn into_query(self) -> Result<Query, Self>
Returns the inner fields if this is a Item::Query, otherwise returns back the enum in the Err case of the result
sourcepub fn as_pipeline_mut(&mut self) -> Option<&mut Pipeline>
pub fn as_pipeline_mut(&mut self) -> Option<&mut Pipeline>
Optionally returns mutable references to the inner fields if this is a Item::Pipeline, otherwise None
sourcepub fn as_pipeline(&self) -> Option<&Pipeline>
pub fn as_pipeline(&self) -> Option<&Pipeline>
Optionally returns references to the inner fields if this is a Item::Pipeline, otherwise None
sourcepub fn into_pipeline(self) -> Result<Pipeline, Self>
pub fn into_pipeline(self) -> Result<Pipeline, Self>
Returns the inner fields if this is a Item::Pipeline, otherwise returns back the enum in the Err case of the result
sourcepub fn as_transform_mut(&mut self) -> Option<&mut Transform>
pub fn as_transform_mut(&mut self) -> Option<&mut Transform>
Optionally returns mutable references to the inner fields if this is a Item::Transform, otherwise None
sourcepub fn as_transform(&self) -> Option<&Transform>
pub fn as_transform(&self) -> Option<&Transform>
Optionally returns references to the inner fields if this is a Item::Transform, otherwise None
sourcepub fn into_transform(self) -> Result<Transform, Self>
pub fn into_transform(self) -> Result<Transform, Self>
Returns the inner fields if this is a Item::Transform, otherwise returns back the enum in the Err case of the result
sourcepub fn as_list_mut(&mut self) -> Option<&mut Vec<Node>>
pub fn as_list_mut(&mut self) -> Option<&mut Vec<Node>>
Optionally returns mutable references to the inner fields if this is a Item::List, otherwise None
sourcepub fn as_list(&self) -> Option<&Vec<Node>>
pub fn as_list(&self) -> Option<&Vec<Node>>
Optionally returns references to the inner fields if this is a Item::List, otherwise None
sourcepub fn into_list(self) -> Result<Vec<Node>, Self>
pub fn into_list(self) -> Result<Vec<Node>, Self>
Returns the inner fields if this is a Item::List, otherwise returns back the enum in the Err case of the result
sourcepub fn as_range_mut(&mut self) -> Option<&mut Range>
pub fn as_range_mut(&mut self) -> Option<&mut Range>
Optionally returns mutable references to the inner fields if this is a Item::Range, otherwise None
sourcepub fn as_range(&self) -> Option<&Range>
pub fn as_range(&self) -> Option<&Range>
Optionally returns references to the inner fields if this is a Item::Range, otherwise None
sourcepub fn into_range(self) -> Result<Range, Self>
pub fn into_range(self) -> Result<Range, Self>
Returns the inner fields if this is a Item::Range, otherwise returns back the enum in the Err case of the result
sourcepub fn as_binary_mut(
&mut self
) -> Option<(&mut Box<Node>, &mut BinOp, &mut Box<Node>)>
pub fn as_binary_mut(
&mut self
) -> Option<(&mut Box<Node>, &mut BinOp, &mut Box<Node>)>
Optionally returns mutable references to the inner fields if this is a Item::Binary, otherwise None
sourcepub fn as_binary(&self) -> Option<(&Box<Node>, &BinOp, &Box<Node>)>
pub fn as_binary(&self) -> Option<(&Box<Node>, &BinOp, &Box<Node>)>
Optionally returns references to the inner fields if this is a Item::Binary, otherwise None
sourcepub fn into_binary(self) -> Result<(Box<Node>, BinOp, Box<Node>), Self>
pub fn into_binary(self) -> Result<(Box<Node>, BinOp, Box<Node>), Self>
Returns the inner fields if this is a Item::Binary, otherwise returns back the enum in the Err case of the result
sourcepub fn as_unary_mut(&mut self) -> Option<(&mut UnOp, &mut Box<Node>)>
pub fn as_unary_mut(&mut self) -> Option<(&mut UnOp, &mut Box<Node>)>
Optionally returns mutable references to the inner fields if this is a Item::Unary, otherwise None
sourcepub fn as_unary(&self) -> Option<(&UnOp, &Box<Node>)>
pub fn as_unary(&self) -> Option<(&UnOp, &Box<Node>)>
Optionally returns references to the inner fields if this is a Item::Unary, otherwise None
sourcepub fn into_unary(self) -> Result<(UnOp, Box<Node>), Self>
pub fn into_unary(self) -> Result<(UnOp, Box<Node>), Self>
Returns the inner fields if this is a Item::Unary, otherwise returns back the enum in the Err case of the result
sourcepub fn as_func_def_mut(&mut self) -> Option<&mut FuncDef>
pub fn as_func_def_mut(&mut self) -> Option<&mut FuncDef>
Optionally returns mutable references to the inner fields if this is a Item::FuncDef, otherwise None
sourcepub fn as_func_def(&self) -> Option<&FuncDef>
pub fn as_func_def(&self) -> Option<&FuncDef>
Optionally returns references to the inner fields if this is a Item::FuncDef, otherwise None
sourcepub fn into_func_def(self) -> Result<FuncDef, Self>
pub fn into_func_def(self) -> Result<FuncDef, Self>
Returns the inner fields if this is a Item::FuncDef, otherwise returns back the enum in the Err case of the result
sourcepub fn as_func_call_mut(&mut self) -> Option<&mut FuncCall>
pub fn as_func_call_mut(&mut self) -> Option<&mut FuncCall>
Optionally returns mutable references to the inner fields if this is a Item::FuncCall, otherwise None
sourcepub fn as_func_call(&self) -> Option<&FuncCall>
pub fn as_func_call(&self) -> Option<&FuncCall>
Optionally returns references to the inner fields if this is a Item::FuncCall, otherwise None
sourcepub fn into_func_call(self) -> Result<FuncCall, Self>
pub fn into_func_call(self) -> Result<FuncCall, Self>
Returns the inner fields if this is a Item::FuncCall, otherwise returns back the enum in the Err case of the result
sourcepub fn as_type_mut(&mut self) -> Option<&mut Ty>
pub fn as_type_mut(&mut self) -> Option<&mut Ty>
Optionally returns mutable references to the inner fields if this is a Item::Type, otherwise None
sourcepub fn as_type(&self) -> Option<&Ty>
pub fn as_type(&self) -> Option<&Ty>
Optionally returns references to the inner fields if this is a Item::Type, otherwise None
sourcepub fn into_type(self) -> Result<Ty, Self>
pub fn into_type(self) -> Result<Ty, Self>
Returns the inner fields if this is a Item::Type, otherwise returns back the enum in the Err case of the result
sourcepub fn as_table_mut(&mut self) -> Option<&mut Table>
pub fn as_table_mut(&mut self) -> Option<&mut Table>
Optionally returns mutable references to the inner fields if this is a Item::Table, otherwise None
sourcepub fn as_table(&self) -> Option<&Table>
pub fn as_table(&self) -> Option<&Table>
Optionally returns references to the inner fields if this is a Item::Table, otherwise None
sourcepub fn into_table(self) -> Result<Table, Self>
pub fn into_table(self) -> Result<Table, Self>
Returns the inner fields if this is a Item::Table, otherwise returns back the enum in the Err case of the result
sourcepub fn as_s_string_mut(&mut self) -> Option<&mut Vec<InterpolateItem>>
pub fn as_s_string_mut(&mut self) -> Option<&mut Vec<InterpolateItem>>
Optionally returns mutable references to the inner fields if this is a Item::SString, otherwise None
sourcepub fn as_s_string(&self) -> Option<&Vec<InterpolateItem>>
pub fn as_s_string(&self) -> Option<&Vec<InterpolateItem>>
Optionally returns references to the inner fields if this is a Item::SString, otherwise None
sourcepub fn into_s_string(self) -> Result<Vec<InterpolateItem>, Self>
pub fn into_s_string(self) -> Result<Vec<InterpolateItem>, Self>
Returns the inner fields if this is a Item::SString, otherwise returns back the enum in the Err case of the result
sourcepub fn as_f_string_mut(&mut self) -> Option<&mut Vec<InterpolateItem>>
pub fn as_f_string_mut(&mut self) -> Option<&mut Vec<InterpolateItem>>
Optionally returns mutable references to the inner fields if this is a Item::FString, otherwise None
sourcepub fn as_f_string(&self) -> Option<&Vec<InterpolateItem>>
pub fn as_f_string(&self) -> Option<&Vec<InterpolateItem>>
Optionally returns references to the inner fields if this is a Item::FString, otherwise None
sourcepub fn into_f_string(self) -> Result<Vec<InterpolateItem>, Self>
pub fn into_f_string(self) -> Result<Vec<InterpolateItem>, Self>
Returns the inner fields if this is a Item::FString, otherwise returns back the enum in the Err case of the result
sourcepub fn as_interval_mut(&mut self) -> Option<&mut Interval>
pub fn as_interval_mut(&mut self) -> Option<&mut Interval>
Optionally returns mutable references to the inner fields if this is a Item::Interval, otherwise None
sourcepub fn as_interval(&self) -> Option<&Interval>
pub fn as_interval(&self) -> Option<&Interval>
Optionally returns references to the inner fields if this is a Item::Interval, otherwise None
sourcepub fn into_interval(self) -> Result<Interval, Self>
pub fn into_interval(self) -> Result<Interval, Self>
Returns the inner fields if this is a Item::Interval, otherwise returns back the enum in the Err case of the result
sourcepub fn as_windowed_mut(&mut self) -> Option<&mut Windowed>
pub fn as_windowed_mut(&mut self) -> Option<&mut Windowed>
Optionally returns mutable references to the inner fields if this is a Item::Windowed, otherwise None
sourcepub fn as_windowed(&self) -> Option<&Windowed>
pub fn as_windowed(&self) -> Option<&Windowed>
Optionally returns references to the inner fields if this is a Item::Windowed, otherwise None
sourcepub fn into_windowed(self) -> Result<Windowed, Self>
pub fn into_windowed(self) -> Result<Windowed, Self>
Returns the inner fields if this is a Item::Windowed, otherwise returns back the enum in the Err case of the result
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Item
impl<'de> Deserialize<'de> for Item
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 Item
Auto Trait Implementations
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnwindSafe for Item
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