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

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

Associated Types

type Error[src]

Error type for failed conversions.

Loading content...

Required methods

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

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    from: Scan
) -> Result<Option<Value>, <Artichoke as TryConvertMut<Scan, Option<Value>>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    max: Option<Value>
) -> Result<Max, <Artichoke as TryConvertMut<Option<Value>, Max>>::Error>
[src]

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

type Error = Error

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

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

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
[src]

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

type Error = InvalidEncodingError

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    max: Value
) -> Result<Max, <Artichoke as TryConvertMut<Value, Max>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<Vec<u8, Global>>, <Artichoke as TryConvertMut<Value, Option<Vec<u8, Global>>>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<String>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<String>, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<Vec<u8, Global>>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<Vec<u8, Global>>, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<i64, Global>, <Artichoke as TryConvertMut<Value, Vec<i64, Global>>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<u8, Global>, <Artichoke as TryConvertMut<Value, Vec<u8, Global>>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<String, Global>, <Artichoke as TryConvertMut<Value, Vec<String, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Vec<u8, Global>, Global>, <Artichoke as TryConvertMut<Value, Vec<Vec<u8, Global>, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Option<Vec<u8, Global>>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<Vec<u8, Global>>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<i64, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<i64, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<(Vec<u8, Global>, Vec<i64, Global>), Global>, Value>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<String, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<String, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<Vec<u8, Global>>, Global>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Vec<u8, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<u8, Global>, Global>, Value>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &OsStr
) -> Result<Value, <Artichoke as TryConvertMut<&'_ OsStr, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[Option<Value>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Value>], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[Option<Vec<u8, Global>>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<Vec<u8, Global>>], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[i64]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [i64], Value>>::Error>
[src]

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

type Error = Error

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

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[String]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [String], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[Vec<u8, Global>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Vec<u8, Global>], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<&str, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ str, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Option<&str>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ str>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Option<&[u8]>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Option<&'_ [u8]>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<&[u8], Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<&'_ [u8], Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<&str>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ str>, Global>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Vec<Vec<Option<&[u8]>, Global>, Global>
) -> Result<Value, <Artichoke as TryConvertMut<Vec<Vec<Option<&'_ [u8]>, Global>, Global>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[&str]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ str], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[Option<&str>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ str>], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[Option<&[u8]>]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [Option<&'_ [u8]>], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &[&[u8]]
) -> Result<Value, <Artichoke as TryConvertMut<&'_ [&'_ [u8]], Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &'a mut Value
) -> Result<CaptureExtract<'a>, <Artichoke as TryConvertMut<&'a mut Value, CaptureExtract<'a>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: &'a mut Value
) -> Result<IntegerString<'a>, <Artichoke as TryConvertMut<&'a mut Value, IntegerString<'a>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Cow<'a, OsStr>
) -> Result<Value, <Artichoke as TryConvertMut<Cow<'a, OsStr>, Value>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<&'a str, <Artichoke as TryConvertMut<Value, &'a str>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<&'a str>, <Artichoke as TryConvertMut<Value, Option<&'a str>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Option<&'a [u8]>, <Artichoke as TryConvertMut<Value, Option<&'a [u8]>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<&'a [u8], <Artichoke as TryConvertMut<Value, &'a [u8]>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<&'a str, Global>, <Artichoke as TryConvertMut<Value, Vec<&'a str, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<&'a str>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a str>, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<Option<&'a [u8]>, Global>, <Artichoke as TryConvertMut<Value, Vec<Option<&'a [u8]>, Global>>>::Error>
[src]

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

type Error = Error

pub fn try_convert_mut(
    &mut self,
    value: Value
) -> Result<Vec<&'a [u8], Global>, <Artichoke as TryConvertMut<Value, Vec<&'a [u8], Global>>>::Error>
[src]

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.

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.

type Error = Error

Loading content...