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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl From<&&Bson> 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<&Bson> 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<Bson> for bool

Source§

fn op_from(arg: Value) -> Self

Source§

impl From<bool> for bool

Source§

fn op_from(arg: bool) -> Self

Implementors§