Struct lib_ruby_parser::nodes::Irange
source · #[repr(C)]pub struct Irange {
pub left: Option<Box<Node>>,
pub right: Option<Box<Node>>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents inclusive range (i.e. 2..4
)
Fields§
§left: Option<Box<Node>>
Begin of the range, None
if range has no begin
(i.e. ..4
)
right: Option<Box<Node>>
End of the range, None
if range has no end
(i.e. 2..
)
operator_l: Loc
Location of the ..
operator
2..4
~~
expression_l: Loc
Location of the full expression
2..4
~~~~
Trait Implementations§
source§impl PartialEq for Irange
impl PartialEq for Irange
impl StructuralPartialEq for Irange
Auto Trait Implementations§
impl Freeze for Irange
impl RefUnwindSafe for Irange
impl Send for Irange
impl Sync for Irange
impl Unpin for Irange
impl UnwindSafe for Irange
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