Skip to main content

TryFromStr

Trait TryFromStr 

Source
pub trait TryFromStr<C>: Sized {
    type Error;

    // Required method
    fn try_from_str(s: &str, context: &mut C) -> Result<Self, Self::Error>;
}
Expand description

A utility trait for implementing a try_from_str with a provided context.

Required Associated Types§

Required Methods§

Source

fn try_from_str(s: &str, context: &mut C) -> Result<Self, Self::Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl TryFromStr<LineParseContext> for String

Source§

impl TryFromStr<LineParseContext> for i8

Source§

impl TryFromStr<LineParseContext> for i32

Source§

impl TryFromStr<LineParseContext> for u8

Source§

impl TryFromStr<LineParseContext> for u16

Implementors§