TryBuildInto

Trait TryBuildInto 

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

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

Required Associated Types§

Source

type Error

The type returned in the event of a conversion error.

Required Methods§

Source

fn try_build_into(self) -> Result<T, 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.

Implementors§

Source§

impl<S, T> TryBuildInto<T> for S
where T: TryBuildFrom<S>,

Source§

type Error = <T as TryBuildFrom<S>>::Error