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§
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.