pub enum ValueRange<'a> {
Single(Expr<'a>),
Range {
lo: Expr<'a>,
hi: Expr<'a>,
span: Span,
},
}Variants§
Trait Implementations§
Source§impl<'a> AcceptVisitor<'a> for ValueRange<'a>
impl<'a> AcceptVisitor<'a> for ValueRange<'a>
Source§impl<'a> Clone for ValueRange<'a>
impl<'a> Clone for ValueRange<'a>
Source§fn clone(&self) -> ValueRange<'a>
fn clone(&self) -> ValueRange<'a>
Returns a duplicate 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<'a> Debug for ValueRange<'a>
impl<'a> Debug for ValueRange<'a>
Source§impl<'a> ForEachChild<'a> for ValueRange<'a>
impl<'a> ForEachChild<'a> for ValueRange<'a>
Source§fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_child(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to each child node.
Source§impl<'a> ForEachNode<'a> for ValueRange<'a>
impl<'a> ForEachNode<'a> for ValueRange<'a>
Source§fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
Source§impl<'a> PartialEq for ValueRange<'a>
impl<'a> PartialEq for ValueRange<'a>
Source§impl<'a> WalkVisitor<'a> for ValueRange<'a>
impl<'a> WalkVisitor<'a> for ValueRange<'a>
impl<'a> Eq for ValueRange<'a>
impl<'a> StructuralPartialEq for ValueRange<'a>
Auto Trait Implementations§
impl<'a> !Freeze for ValueRange<'a>
impl<'a> !RefUnwindSafe for ValueRange<'a>
impl<'a> Send for ValueRange<'a>
impl<'a> Sync for ValueRange<'a>
impl<'a> Unpin for ValueRange<'a>
impl<'a> !UnwindSafe for ValueRange<'a>
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