[][src]Trait artichoke::prelude::TryConvertMut

pub trait TryConvertMut<T, U> {
    type Error;
    pub 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 core::convert::TryFrom. See TryConvert.

Associated Types

type Error[src]

Error type for failed conversions.

Loading content...

Required methods

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

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<CaptureMatch, Value> for Artichoke[src]

type Error = Error

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

type Error = Error

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

type Error = TypeError

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

type Error = Error

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

type Error = Error

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

type Error = Error

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

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

type Error = TypeError

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

type Error = InvalidEncodingError

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

type Error = Error

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

type Error = Error

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

type Error = Error

impl TryConvertMut<Value, Option<Vec<u8, Global>>> for Artichoke[src]

type Error = Error

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

type Error = Error

impl TryConvertMut<Value, Vec<Option<String>, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<i64, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<(Value, Value), Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<u8, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<Value, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<String, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Value, Vec<Vec<u8, Global>, Global>> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<i64, Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<Value, Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<String, Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

impl TryConvertMut<Vec<Vec<u8, Global>, Global>, Value> for Artichoke[src]

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

impl<'_> TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value> for Artichoke[src]

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

impl<'_> TryConvertMut<&'_ [Vec<u8, Global>], Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<&'_ str, Global>, Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<Option<&'_ str>, Global>, Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<&'_ [u8], Global>, Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

impl<'_> TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value> for Artichoke[src]

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = TypeError

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

type Error = Error

impl<'a> TryConvertMut<Cow<'a, OsStr>, Value> for Artichoke[src]

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

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

type Error = Error

impl<'a> TryConvertMut<Value, Vec<&'a str, Global>> for Artichoke[src]

type Error = Error

impl<'a> TryConvertMut<Value, Vec<Option<&'a str>, Global>> for Artichoke[src]

type Error = Error

impl<'a> TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>> for Artichoke[src]

type Error = Error

impl<'a> TryConvertMut<Value, Vec<&'a [u8], Global>> for Artichoke[src]

type Error = Error

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 = Error

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

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

Loading content...