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