/// Converts this value into a float or `None` if is not a float literal.
Converts this value into a float or `None` if is not a float literal.
Converts this value into a float or ` None ` if is not a float literal .
pub fn to_float_literal<N>(&self) -> Option<N>
        where
            N: FromStr,
            N::Err: Display,
    {
        match self {
            Value::Literal(Lit::Float(n)) => n.base10_parse().ok(),
            _ => None,
        }
    }
pub fn to_float_literal < N > ( & self ) -> Option < N > where N : FromStr , N :: Err : Display , { match self { Value :: Literal ( Lit :: Float ( n ) ) => n . base10_parse ( ) . ok ( ) , _ => None , } }
Converts this value into a float or `None` if is not a float literal.
Converts this value into a float or ` None ` if is not a float literal .
&self