Struct lib_ruby_parser::nodes::Rational [−][src]
#[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: StringString value of the literal, String("1r") for 1r
operator_l: Option<Loc>Location of the unary - (but not +)
-1r
~expression_l: LocLocation of the full expression
-1r
~~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Rational
impl UnwindSafe for Rational
Blanket Implementations
Mutably borrows from an owned value. Read more