Trait prse::ExtParseStr

source ·
pub trait ExtParseStr: Sealed {
    fn lending_parse<'a, F: LendingFromStr<'a>>(
        &'a self
    ) -> Result<F, ParseError>; }
Expand description

An str extension trait to allow you to call the from_str from LendingFromStr without specifying the type.

The trait is sealed and cannot be implemented on any other type.

Required Methods§

Parses the string slice into another type.

lending_parse can parse into any type that implements the LendingFromStr trait.

Implementations on Foreign Types§

Implementors§