Struct ruby_prism::IntegerNode
source · pub struct IntegerNode<'pr> { /* private fields */ }
Expand description
Represents an integer number literal.
1
^
Implementations§
source§impl<'pr> IntegerNode<'pr>
impl<'pr> IntegerNode<'pr>
sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
sourcepub fn is_decimal(&self) -> bool
pub fn is_decimal(&self) -> bool
0d or no prefix
sourcepub fn is_hexadecimal(&self) -> bool
pub fn is_hexadecimal(&self) -> bool
0x prefix
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for IntegerNode<'pr>
impl<'pr> !Send for IntegerNode<'pr>
impl<'pr> !Sync for IntegerNode<'pr>
impl<'pr> Unpin for IntegerNode<'pr>
impl<'pr> !UnwindSafe for IntegerNode<'pr>
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