Parse

Trait Parse 

Source
pub trait Parse: Sized {
    // Required method
    fn parse(string: &str) -> Result<Self, Error>;
}
Expand description

A specialized FromStr trait that returns Error errors

Required Methods§

Source

fn parse(string: &str) -> Result<Self, Error>

Parse Self from string.

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.

Implementations on Foreign Types§

Source§

impl Parse for bool

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for i8

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for i16

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for i32

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for i64

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for i128

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for u8

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for u16

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for u32

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for u64

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for u128

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for String

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for Vec<Address>

Source§

fn parse(string: &str) -> Result<Self, Error>

Source§

impl Parse for PathBuf

Source§

fn parse(string: &str) -> Result<Self, Error>

Implementors§