Skip to main content

ParseFloatTarget

Trait ParseFloatTarget 

Source
pub trait ParseFloatTarget:
    Sized
    + Send
    + Sync
    + 'static {
    // Required methods
    fn parse_float(value: &str) -> Result<Self, String>;
    fn target_name() -> &'static str;
}

Required Methods§

Source

fn parse_float(value: &str) -> Result<Self, String>

Source

fn target_name() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ParseFloatTarget for f32

Source§

fn parse_float(value: &str) -> Result<Self, String>

Source§

fn target_name() -> &'static str

Source§

impl ParseFloatTarget for f64

Source§

fn parse_float(value: &str) -> Result<Self, String>

Source§

fn target_name() -> &'static str

Implementors§