Struct lib_ruby_parser::nodes::Irange [−][src]
#[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
~~~~
Implementations
Returns operator_l
field
Returns expression_l
field
Sets operator_l
field
Sets expression_l
field
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Irange
impl UnwindSafe for Irange
Blanket Implementations
Mutably borrows from an owned value. Read more