Trait MoreTryFrom

Source
pub trait MoreTryFrom<T>: Sized {
    type Error;

    // Required method
    fn more_try_from(value: T) -> Result<Self, Self::Error>;
}

Required Associated Types§

Source

type Error

The type returned in the event of a conversion error.

Required Methods§

Source

fn more_try_from(value: T) -> Result<Self, Self::Error>

Performs the conversion.

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 MoreTryFrom<&OsStr> for CString

Source§

type Error = NulError

Source§

fn more_try_from(value: &OsStr) -> Result<Self, Self::Error>

Source§

impl MoreTryFrom<&OsString> for CString

Source§

impl MoreTryFrom<&Path> for CString

Source§

type Error = NulError

Source§

fn more_try_from(value: &Path) -> Result<Self, Self::Error>

Source§

impl MoreTryFrom<&PathBuf> for CString

Source§

impl MoreTryFrom<OsString> for CString

Source§

impl MoreTryFrom<PathBuf> for CString

Implementors§