Trait FromStringBase

Source
pub trait FromStringBase: Sized {
    // Required method
    fn from_string_base(base: u8, s: &str) -> Option<Self>;
}
Expand description

Converts a string slice in a given base to a value.

Required Methods§

Source

fn from_string_base(base: u8, s: &str) -> Option<Self>

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 FromStringBase for i8

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for i16

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for i32

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for i64

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for i128

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for isize

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for u8

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for u16

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for u32

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for u64

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for u128

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Source§

impl FromStringBase for usize

Source§

fn from_string_base(base: u8, s: &str) -> Option<Self>

This is a wrapper over the from_str_radix functions in the standard library, for example this one.

Implementors§