Struct ruby_prism::RangeNode
source · pub struct RangeNode<'pr> { /* private fields */ }
Expand description
Represents the use of the ..
or ...
operators.
1..2
^^^^
c if a =~ /left/ ... b =~ /right/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Implementations§
source§impl<'pr> RangeNode<'pr>
impl<'pr> RangeNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn is_exclude_end(&self) -> bool
pub fn is_exclude_end(&self) -> bool
… operator
sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for RangeNode<'pr>
impl<'pr> !Send for RangeNode<'pr>
impl<'pr> !Sync for RangeNode<'pr>
impl<'pr> Unpin for RangeNode<'pr>
impl<'pr> !UnwindSafe for RangeNode<'pr>
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