pub trait TryConvertMut<T, U> {
type Error;
// Required method
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§
Sourcefn 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§
Source§impl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke
impl TryConvertMut<(Option<Value>, Option<Value>), (Option<Options>, Option<Encoding>)> for Artichoke
Source§impl TryConvertMut<Value, Encoding> for Artichoke
impl TryConvertMut<Value, Encoding> for Artichoke
type Error = InvalidEncodingError
Source§impl<T, U> TryConvertMut<T, U> for Artichokewhere
Artichoke: ConvertMut<T, U>,
Provide a mutable fallible converter for types that implement an infallible
conversion.
impl<T, U> TryConvertMut<T, U> for Artichokewhere
Artichoke: ConvertMut<T, U>,
Provide a mutable fallible converter for types that implement an infallible conversion.