Struct literalext::FloatLit
[−]
[src]
pub struct FloatLit { /* fields omitted */ }
A type which represents a floating point value.
Methods
impl FloatLit
[src]
fn suffix(&self) -> &str
Get the suffix for the float.
fn as_f32(&self) -> Option<f32>
Returns None
if the suffix does not match the requested type.
fn as_f64(&self) -> Option<f64>
Returns None
if the suffix does not match the requested type.
Trait Implementations
impl Debug for FloatLit
[src]
impl Copy for FloatLit
[src]
impl Clone for FloatLit
[src]
fn clone(&self) -> FloatLit
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more