Trait artichoke_core::convert::TryConvertMut

source ·
pub trait TryConvertMut<T, U> {
    type Error;

    // Required method
    fn try_convert_mut(&mut self, value: T) -> Result<U, Self::Error>;
}
Expand description

Mutable fallible conversions between two types.

Implementors may allocate on the interpreter heap.

See core::convert::TryFrom. See TryConvert.

Required Associated Types§

source

type Error

Error type for failed conversions.

Required Methods§

source

fn try_convert_mut(&mut self, value: T) -> Result<U, Self::Error>

Performs the fallible conversion.

§Errors

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

Implementors§