[][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 TryConvertMut<Option<Value>, RandomNumberMax> for Artichoke[src]

type Error = Exception

impl TryConvertMut<Option<Value>, Seed> for Artichoke[src]

type Error = TypeError

impl TryConvertMut<Option<Value>, RandomNumberMax> for Artichoke[src]

type Error = Exception

impl TryConvertMut<Option<Value>, Option<Radix>> for Artichoke[src]

type Error = Exception

impl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke[src]

type Error = Exception

impl TryConvertMut<Value, RandomNumberMax> for Artichoke[src]

type Error = Exception

impl TryConvertMut<Value, Seed> for Artichoke[src]

type Error = TypeError

impl TryConvertMut<Value, RandomNumberMax> for Artichoke[src]

type Error = Exception

impl TryConvertMut<OsString, Value> for Artichoke[src]

type Error = Exception

impl<'_> TryConvertMut<&'_ OsStr, Value> for Artichoke[src]

type Error = Exception

impl<'a> TryConvertMut<&'a Value, Capture<'a>> for Artichoke[src]

type Error = TypeError

impl<'a> TryConvertMut<&'a Value, IntegerString<'a>> for Artichoke[src]

type Error = Exception

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...