Trait artichoke::prelude::TryConvertMut
source · [−]pub trait TryConvertMut<T, U> {
type Error;
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
Required Methods
fn try_convert_mut(&mut self, value: T) -> Result<U, Self::Error>
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
sourceimpl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke
impl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke
sourceimpl TryConvertMut<CaptureMatch, Value> for Artichoke
impl TryConvertMut<CaptureMatch, Value> for Artichoke
sourceimpl TryConvertMut<Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>, Value> for Artichoke
impl TryConvertMut<Option<HashMap<Vec<u8, Global>, Option<Vec<u8, Global>>, RandomState>>, Value> for Artichoke
sourceimpl TryConvertMut<Value, Encoding> for Artichoke
impl TryConvertMut<Value, Encoding> for Artichoke
type Error = InvalidEncodingError
sourceimpl TryConvertMut<HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>, Value> for Artichoke
impl TryConvertMut<HashMap<Vec<u8, Global>, Vec<u8, Global>, RandomState>, Value> for Artichoke
sourceimpl<'a> TryConvertMut<&'a mut Value, CaptureExtract<'a>> for Artichoke
impl<'a> TryConvertMut<&'a mut Value, CaptureExtract<'a>> for Artichoke
sourceimpl<'a> TryConvertMut<&'a mut Value, IntegerString<'a>> for Artichoke
impl<'a> TryConvertMut<&'a mut Value, IntegerString<'a>> for Artichoke
sourceimpl<T, U> TryConvertMut<T, U> for Artichoke where
Artichoke: ConvertMut<T, U>,
impl<T, U> TryConvertMut<T, U> for Artichoke where
Artichoke: ConvertMut<T, U>,
Provide a mutable fallible converter for types that implement an infallible conversion.