LiteralExt

Trait LiteralExt 

Source
pub trait LiteralExt {
    // Required methods
    fn is_numeric(&self) -> bool;
    fn try_int(&self) -> Result<LitInt>;
    fn try_float(&self) -> Result<LitFloat>;
}
Expand description

This is an extension trait for the following impl:

#[extension(pub trait LiteralExt)]
impl for Literal

Required Methods§

Implementors§