[][src]Trait artichoke_backend::TryConvertMut

pub trait TryConvertMut<T, U> {
    type Error: Error;
    fn try_convert_mut(&mut self, value: T) -> Result<U, Self::Error>;
}

Mutable fallible conversions between two types.

Implementors may allocate on the interpreter heap.

See std::convert::TryFrom. See TryConvert.

Associated Types

type Error: Error

Error type for failed conversions.

Loading content...

Required methods

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.

Loading content...

Implementors

impl<T, U> TryConvertMut<T, U> for Artichoke where
    Artichoke: ConvertMut<T, U>, 
[src]

Provide a mutable fallible converter for types that implement an infallible conversion.

type Error = Exception

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

Blanket implementation that always succeeds by delegating to Convert::convert.

Loading content...