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