Trait malachite_base::num::conversion::traits::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>

Object Safety§

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§