Trait rust2go::FromRef

source ·
pub trait FromRef {
    type Ref;

    // Required method
    fn from_ref(ref_: &Self::Ref) -> Self;
}

Required Associated Types§

Required Methods§

source

fn from_ref(ref_: &Self::Ref) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromRef for bool

§

type Ref = bool

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for char

§

type Ref = char

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for f32

§

type Ref = f32

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for f64

§

type Ref = f64

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for i8

§

type Ref = i8

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for i16

§

type Ref = i16

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for i32

§

type Ref = i32

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for i64

§

type Ref = i64

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for isize

§

type Ref = isize

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for u8

§

type Ref = u8

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for u16

§

type Ref = u16

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for u32

§

type Ref = u32

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for u64

§

type Ref = u64

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for usize

§

type Ref = usize

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for String

§

type Ref = StringRef

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl FromRef for Waker

§

type Ref = WakerRef

source§

fn from_ref(ref_: &Self::Ref) -> Self

source§

impl<T: FromRef> FromRef for Vec<T>

§

type Ref = ListRef

source§

fn from_ref(ref_: &Self::Ref) -> Self

Implementors§