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