[][src]Trait rustils::parse::double::ToF64

pub trait ToF64 {
    fn to_f64_res(self) -> ParseResultF64;
fn to_f64(self) -> f64; }

Required methods

fn to_f64_res(self) -> ParseResultF64

fn to_f64(self) -> f64

Loading content...

Implementations on Foreign Types

impl ToF64 for bool[src]

fn to_f64_res(self) -> ParseResultF64[src]

Parse bool to f64 (see more: bool_to_f64_res)

Examples

use rustils::parse::double::ToF64;

assert_eq!(true.to_f64_res(), Ok(1.0_f64));
assert_eq!(false.to_f64_res(), Ok(0.0_f64));

fn to_f64(self) -> f64[src]

Parse bool to f64 (see more: bool_to_f64)

Examples

use rustils::parse::double::ToF64;

assert_eq!(true.to_f64(), 1.0_f64);
assert_eq!(false.to_f64(), 0.0_f64);

impl ToF64 for String[src]

impl ToF64 for &'static str[src]

Loading content...

Implementors

Loading content...