Trait artichoke_core::convert::TryConvert[][src]

pub trait TryConvert<T, U> {
    type Error;
    fn try_convert(&self, value: T) -> Result<U, Self::Error>;
}
Expand description

Fallible conversions between two types.

Implementors may not allocate on the interpreter heap.

See core::convert::TryFrom. See TryConvertMut.

Associated Types

Error type for failed conversions.

Required methods

Performs the fallible conversion.

Errors

If boxing or unboxing a value into the specified type fails, an error is returned.

Implementors