Struct lib_ruby_parser::nodes::Erange
source · [−]#[repr(C)]pub struct Erange {
pub left: Option<Box<Node>>,
pub right: Option<Box<Node>>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents range literal with excluded end
(i.e. 1...3
)
Fields
left: Option<Box<Node>>
Begin of the range, None
if range has no begin (i.e ...42
)
right: Option<Box<Node>>
End of the range, None
if range has no end (i.e 42...
)
operator_l: Loc
Location of the ...
operator
1...3
~~~
expression_l: Loc
Location of the full expression
1...3
~~~~~
Trait Implementations
impl StructuralPartialEq for Erange
Auto Trait Implementations
impl RefUnwindSafe for Erange
impl Send for Erange
impl Sync for Erange
impl Unpin for Erange
impl UnwindSafe for Erange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more