pub enum OtherOperator {
Parentheses,
FieldSeparator,
IndexRange,
Subscript,
Separator,
Conditional,
ArrayConstant,
LineComment,
LineCommentBasic,
BlockComment,
}Expand description
A structural element of the expression language.
Variants§
Parentheses
Parentheses, (), force evaluation order.
FieldSeparator
Dot, ., separates a property from its field.
IndexRange
Double dot, .., a range of indexes inside a subscript, selecting
several elements and yielding a subarray.
Subscript
Brackets, [], array subscript.
The subscript is normally numeric. Arrays of steps or sequences also accept the element’s name as a string.
Separator
Comma, ,, separates or terminates expressions.
Conditional
Conditional, ?:, picks one of two expressions from a boolean.
ArrayConstant
Braces, {}, an array constant.
LineComment
//, a comment running to the end of the line.
LineCommentBasic
', a comment running to the end of the line, in the Basic style.
BlockComment
/* */, a comment spanning any amount of text.
Implementations§
Source§impl OtherOperator
impl OtherOperator
Trait Implementations§
Source§impl Clone for OtherOperator
impl Clone for OtherOperator
Source§fn clone(&self) -> OtherOperator
fn clone(&self) -> OtherOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OtherOperator
Source§impl Debug for OtherOperator
impl Debug for OtherOperator
impl Eq for OtherOperator
Source§impl Hash for OtherOperator
impl Hash for OtherOperator
Source§impl PartialEq for OtherOperator
impl PartialEq for OtherOperator
impl StructuralPartialEq for OtherOperator
Auto Trait Implementations§
impl Freeze for OtherOperator
impl RefUnwindSafe for OtherOperator
impl Send for OtherOperator
impl Sync for OtherOperator
impl Unpin for OtherOperator
impl UnsafeUnpin for OtherOperator
impl UnwindSafe for OtherOperator
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