Enum valkyrie_ast::RangeTermNode
source · pub enum RangeTermNode {
Index {
index: ExpressionKind,
},
Range {
head: Option<ExpressionKind>,
tail: Option<ExpressionKind>,
step: Option<ExpressionKind>,
},
}Expand description
[index], ⁅start : end : step⁆
Variants§
Index
Fields
§
index: ExpressionKindThe index of range
The index kind
Range
Fields
§
head: Option<ExpressionKind>The first element in range
§
tail: Option<ExpressionKind>The middle element in range
§
step: Option<ExpressionKind>The
The range
Implementations§
source§impl RangeTermNode
impl RangeTermNode
sourcepub fn as_tuple(&self) -> Option<ArgumentTerm>
pub fn as_tuple(&self) -> Option<ArgumentTerm>
Convert to tuple item if possible
Trait Implementations§
source§impl Clone for RangeTermNode
impl Clone for RangeTermNode
source§fn clone(&self) -> RangeTermNode
fn clone(&self) -> RangeTermNode
Returns a copy 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 moresource§impl Debug for RangeTermNode
impl Debug for RangeTermNode
source§impl Hash for RangeTermNode
impl Hash for RangeTermNode
source§impl PartialEq for RangeTermNode
impl PartialEq for RangeTermNode
source§fn eq(&self, other: &RangeTermNode) -> bool
fn eq(&self, other: &RangeTermNode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for RangeTermNode
impl StructuralPartialEq for RangeTermNode
Auto Trait Implementations§
impl RefUnwindSafe for RangeTermNode
impl Send for RangeTermNode
impl Sync for RangeTermNode
impl Unpin for RangeTermNode
impl UnwindSafe for RangeTermNode
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