Skip to main content

InputToNumber

Trait InputToNumber 

Source
pub trait InputToNumber {
    // Required methods
    fn input_to_u32(&mut self) -> u32;
    fn input_to_u64(&mut self) -> u64;
    fn input_to_f64(&mut self) -> f64;
    fn input_to_i128(&mut self) -> i128;
}

Required Methods§

Source

fn input_to_u32(&mut self) -> u32

Source

fn input_to_u64(&mut self) -> u64

Source

fn input_to_f64(&mut self) -> f64

Source

fn input_to_i128(&mut self) -> i128

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl InputToNumber for String

Source§

fn input_to_u32(&mut self) -> u32

Source§

fn input_to_u64(&mut self) -> u64

Source§

fn input_to_f64(&mut self) -> f64

Source§

fn input_to_i128(&mut self) -> i128

Implementors§