pub trait FromFormattedStr: Sealed + Sized {
    // Required method
    fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>
       where F: Format;
}
Expand description

Marker trait for number types (e.g. u32) that string-like types can be parsed into via the ParseFormatted trait.

This trait is sealed; so you may not implement it on your own types.

Required Methods§

source

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

Implementations on Foreign Types§

source§

impl FromFormattedStr for i64

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroU16

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroU32

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroU8

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for u8

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for usize

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for u128

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroUsize

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for i32

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroU128

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for u64

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for u16

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for i8

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for u32

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for isize

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for i16

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for NonZeroU64

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

source§

impl FromFormattedStr for i128

source§

fn from_formatted_str<F>(s: &str, format: &F) -> Result<Self, Error>where F: Format,

Implementors§