Struct ruby_prism::RationalNode
source · pub struct RationalNode<'pr> { /* private fields */ }
Expand description
Represents a rational number literal.
1.0r
^^^^
Implementations§
source§impl<'pr> RationalNode<'pr>
impl<'pr> RationalNode<'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
sourcepub fn denominator(&self) -> Integer<'pr>
pub fn denominator(&self) -> Integer<'pr>
Returns the denominator
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for RationalNode<'pr>
impl<'pr> !Send for RationalNode<'pr>
impl<'pr> !Sync for RationalNode<'pr>
impl<'pr> Unpin for RationalNode<'pr>
impl<'pr> !UnwindSafe for RationalNode<'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