Skip to main content

From

Trait From 

Source
pub trait From<T>: Sized {
    // Required method
    fn op_from(_: T) -> Self;
}

Required Methods§

Source

fn op_from(_: T) -> Self

Performs the conversion.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl From<&&Value> for bool

Source§

fn op_from(arg: &&Value) -> Self

Source§

impl From<&&bool> for bool

Source§

fn op_from(arg: &&bool) -> Self

Source§

impl From<&Value> for bool

Source§

fn op_from(arg: &Value) -> Self

Source§

impl From<&bool> for bool

Source§

fn op_from(arg: &bool) -> Self

Source§

impl From<Value> for bool

Source§

fn op_from(arg: Value) -> Self

Source§

impl From<bool> for bool

Source§

fn op_from(arg: bool) -> Self

Implementors§