Struct lib_ruby_parser::nodes::Rational
source · #[repr(C)]pub struct Rational {
pub value: String,
pub operator_l: Option<Loc>,
pub expression_l: Loc,
}
Expand description
Represents rational literal (e.g. 1r
)
Fields§
§value: String
String value of the literal, String("1r")
for 1r
operator_l: Option<Loc>
Location of the unary -
(but not +
)
-1r
~
expression_l: Loc
Location of the full expression
-1r
~~~
Trait Implementations§
source§impl PartialEq for Rational
impl PartialEq for Rational
impl StructuralPartialEq for Rational
Auto Trait Implementations§
impl Freeze for Rational
impl RefUnwindSafe for Rational
impl Send for Rational
impl Sync for Rational
impl Unpin for Rational
impl UnwindSafe for Rational
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