Trait artichoke::prelude::Convert[][src]

pub trait Convert<T, U> {
    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

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

Performs the infallible conversion.

Loading content...

Implementors

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

pub fn convert(&self, value: Option<bool>) -> Value[src]

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

pub fn convert(&self, value: Option<i64>) -> Value[src]

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

pub fn convert(&self, value: Option<Value>) -> Value[src]

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

pub fn convert(&self, value: bool) -> Value[src]

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

pub fn convert(&self, value: i8) -> Value[src]

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

pub fn convert(&self, value: i16) -> Value[src]

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

pub fn convert(&self, value: i32) -> Value[src]

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

pub fn convert(&self, value: i64) -> Value[src]

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

pub fn convert(&self, value: u8) -> Value[src]

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

pub fn convert(&self, value: u16) -> Value[src]

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

pub fn convert(&self, value: u32) -> Value[src]

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

pub fn convert(&self, from: Integer) -> Value[src]

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

pub fn convert(&self, value: Value) -> Option<Value>[src]

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

pub fn convert(&self, value: Value) -> Value[src]

Loading content...