[][src]Trait artichoke_backend::prelude::Convert

pub trait Convert<T, U> {
    pub fn convert(&self, from: T) -> U;
}

Infallible conversion between two types.

Implementors may not allocate on the interpreter heap.

See core::convert::From. See ConvertMut.

Required methods

pub fn convert(&self, from: T) -> U[src]

Performs the infallible conversion.

Loading content...

Implementors

impl Convert<Option<bool>, Value> for Artichoke[src]

impl Convert<Option<i64>, Value> for Artichoke[src]

impl Convert<Option<Value>, Value> for Artichoke[src]

impl Convert<bool, Value> for Artichoke[src]

impl Convert<i8, Value> for Artichoke[src]

impl Convert<i16, Value> for Artichoke[src]

impl Convert<i32, Value> for Artichoke[src]

impl Convert<i64, Value> for Artichoke[src]

Converter for Artichoke native integer type.

The Int type alias must be i64.

assert_eq!(mem::size_of::<i64>(), mem::size_of::<Int>());
assert_eq!(i64::MIN, Int::MIN);
assert_eq!(i64::MAX, Int::MAX);
assert_eq!(TypeId::of::<i64>(), TypeId::of::<Int>());

impl Convert<u8, Value> for Artichoke[src]

impl Convert<u16, Value> for Artichoke[src]

impl Convert<u32, Value> for Artichoke[src]

impl Convert<Integer, Value> for Artichoke[src]

impl Convert<Value, Option<Value>> for Artichoke[src]

impl Convert<Value, Value> for Artichoke[src]

Loading content...