Skip to main content

ArgIntoRef

Trait ArgIntoRef 

Source
pub trait ArgIntoRef {
    type Target;

    // Required method
    fn to_ref(&self) -> &Self::Target;
}

Required Associated Types§

Required Methods§

Source

fn to_ref(&self) -> &Self::Target

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl ArgIntoRef for ()

Source§

type Target = ()

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for bool

Source§

type Target = bool

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for f32

Source§

type Target = f32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for f64

Source§

type Target = f64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for i8

Source§

type Target = i8

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for i16

Source§

type Target = i16

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for i32

Source§

type Target = i32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for i64

Source§

type Target = i64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for isize

Source§

type Target = isize

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for u8

Source§

type Target = u8

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for u16

Source§

type Target = u16

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for u32

Source§

type Target = u32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for u64

Source§

type Target = u64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl ArgIntoRef for usize

Source§

type Target = usize

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a ()

Source§

type Target = ()

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a bool

Source§

type Target = bool

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a f32

Source§

type Target = f32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a f64

Source§

type Target = f64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a i8

Source§

type Target = i8

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a i16

Source§

type Target = i16

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a i32

Source§

type Target = i32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a i64

Source§

type Target = i64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a isize

Source§

type Target = isize

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a u8

Source§

type Target = u8

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a u16

Source§

type Target = u16

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a u32

Source§

type Target = u32

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a u64

Source§

type Target = u64

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<'a> ArgIntoRef for &'a usize

Source§

type Target = usize

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<T: AnyCompatible> ArgIntoRef for &Option<T>

Source§

type Target = Option<T>

Source§

fn to_ref(&self) -> &Self::Target

Source§

impl<T: AnyCompatible> ArgIntoRef for Option<T>

Source§

type Target = Option<T>

Source§

fn to_ref(&self) -> &Self::Target

Implementors§

Source§

impl ArgIntoRef for Any

Source§

impl ArgIntoRef for Bytes

Source§

impl ArgIntoRef for DLDataType

Source§

impl ArgIntoRef for DLDevice

Source§

impl ArgIntoRef for Error

Source§

impl ArgIntoRef for Function

Source§

impl ArgIntoRef for Module

Source§

impl ArgIntoRef for Shape

Source§

impl ArgIntoRef for String

Source§

impl ArgIntoRef for Tensor

Source§

impl<'a> ArgIntoRef for &'a Any

Source§

impl<'a> ArgIntoRef for &'a Bytes

Source§

impl<'a> ArgIntoRef for &'a DLDataType

Source§

impl<'a> ArgIntoRef for &'a DLDevice

Source§

impl<'a> ArgIntoRef for &'a Error

Source§

impl<'a> ArgIntoRef for &'a Function

Source§

impl<'a> ArgIntoRef for &'a Module

Source§

impl<'a> ArgIntoRef for &'a Shape

Source§

impl<'a> ArgIntoRef for &'a String

Source§

impl<'a> ArgIntoRef for &'a Tensor

Source§

impl<K: ContainerElement, V: ContainerElement> ArgIntoRef for &Map<K, V>

Source§

type Target = Map<K, V>

Source§

impl<K: ContainerElement, V: ContainerElement> ArgIntoRef for Map<K, V>

Source§

type Target = Map<K, V>

Source§

impl<T: ContainerElement + Clone> ArgIntoRef for &Array<T>

Source§

impl<T: ContainerElement + Clone> ArgIntoRef for Array<T>

Source§

impl<T> ArgIntoRef for RValueRef<T>