Trait ToInt

Source
pub trait ToInt {
    // Required method
    fn to_int<R>(&self) -> Result<R, String>
       where R: FromStr;
}

Required Methods§

Source

fn to_int<R>(&self) -> Result<R, String>
where R: FromStr,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ToInt for Vec<u8>

Source§

fn to_int<R>(&self) -> Result<R, String>
where R: FromStr,

Source§

impl ToInt for [u8]

Source§

fn to_int<R>(&self) -> Result<R, String>
where R: FromStr,

Implementors§