[−][src]Trait artichoke_backend::extn::prelude::TryConvert
Fallible conversions between two types.
Implementors may not allocate on the interpreter heap.
See core::convert::TryFrom
.
See TryConvertMut
.
Associated Types
Loading content...Required methods
pub fn try_convert(&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.
Implementors
impl TryConvert<isize, Value> for Artichoke
[src]
impl TryConvert<u64, Value> for Artichoke
[src]
impl TryConvert<usize, Value> for Artichoke
[src]
impl TryConvert<Value, Option<bool>> for Artichoke
[src]
impl TryConvert<Value, Option<i64>> for Artichoke
[src]
impl TryConvert<Value, bool> for Artichoke
[src]
impl TryConvert<Value, f64> for Artichoke
[src]
impl TryConvert<Value, i64> for Artichoke
[src]
impl TryConvert<Value, u32> for Artichoke
[src]
impl TryConvert<Value, usize> for Artichoke
[src]
impl TryConvert<Value, Float> for Artichoke
[src]
impl TryConvert<Value, Integer> for Artichoke
[src]
impl<T, U> TryConvert<T, U> for Artichoke where
Artichoke: Convert<T, U>,
[src]
Artichoke: Convert<T, U>,
Provide a fallible converter for types that implement an infallible conversion.
type Error = Error
pub fn try_convert(&self, value: T) -> Result<U, Self::Error>
[src]
Blanket implementation that always succeeds by delegating to
Convert::convert
.