tvm_ffi
0.1.0-alpha.0
ArgInto
Ref
Required Associated Types
Target
Required Methods
to_ref
Implementations on Foreign Types
&'a ()
&'a bool
&'a f32
&'a f64
&'a i16
&'a i32
&'a i64
&'a i8
&'a isize
&'a u16
&'a u32
&'a u64
&'a u8
&'a usize
&Option<T>
()
Option<T>
bool
f32
f64
i16
i32
i64
i8
isize
u16
u32
u64
u8
usize
Implementors
In tvm_
ffi::
function_
internal
tvm_ffi
::
function_internal
Trait
ArgIntoRef
Copy item path
Source
pub trait ArgIntoRef { type
Target
; // Required method fn
to_ref
(&self) -> &Self::
Target
; }
Required Associated Types
§
Source
type
Target
Required Methods
§
Source
fn
to_ref
(&self) -> &Self::
Target
Implementations on Foreign Types
§
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
()
Source
§
type
Target
=
()
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
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
()
Source
§
type
Target
=
()
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
§
type
Target
=
Any
Source
§
impl
ArgIntoRef
for
BigInt
Source
§
type
Target
=
BigInt
Source
§
impl
ArgIntoRef
for
Shape
Source
§
type
Target
=
Shape
Source
§
impl
ArgIntoRef
for
Tensor
Source
§
type
Target
=
Tensor
Source
§
impl
ArgIntoRef
for
Error
Source
§
type
Target
=
Error
Source
§
impl
ArgIntoRef
for
Module
Source
§
type
Target
=
Module
Source
§
impl
ArgIntoRef
for
Function
Source
§
type
Target
=
Function
Source
§
impl
ArgIntoRef
for
AccessPath
Source
§
type
Target
=
AccessPath
Source
§
impl
ArgIntoRef
for
AccessStep
Source
§
type
Target
=
AccessStep
Source
§
impl
ArgIntoRef
for
Bytes
Source
§
type
Target
=
Bytes
Source
§
impl
ArgIntoRef
for
String
Source
§
type
Target
=
String
Source
§
impl
ArgIntoRef
for
DLDataType
Source
§
type
Target
=
DLDataType
Source
§
impl
ArgIntoRef
for
DLDevice
Source
§
type
Target
=
DLDevice
Source
§
impl<'a>
ArgIntoRef
for &'a
Any
Source
§
type
Target
=
Any
Source
§
impl<'a>
ArgIntoRef
for &'a
BigInt
Source
§
type
Target
=
BigInt
Source
§
impl<'a>
ArgIntoRef
for &'a
Shape
Source
§
type
Target
=
Shape
Source
§
impl<'a>
ArgIntoRef
for &'a
Tensor
Source
§
type
Target
=
Tensor
Source
§
impl<'a>
ArgIntoRef
for &'a
Error
Source
§
type
Target
=
Error
Source
§
impl<'a>
ArgIntoRef
for &'a
Module
Source
§
type
Target
=
Module
Source
§
impl<'a>
ArgIntoRef
for &'a
Function
Source
§
type
Target
=
Function
Source
§
impl<'a>
ArgIntoRef
for &'a
AccessPath
Source
§
type
Target
=
AccessPath
Source
§
impl<'a>
ArgIntoRef
for &'a
AccessStep
Source
§
type
Target
=
AccessStep
Source
§
impl<'a>
ArgIntoRef
for &'a
Bytes
Source
§
type
Target
=
Bytes
Source
§
impl<'a>
ArgIntoRef
for &'a
String
Source
§
type
Target
=
String
Source
§
impl<'a>
ArgIntoRef
for &'a
DLDataType
Source
§
type
Target
=
DLDataType
Source
§
impl<'a>
ArgIntoRef
for &'a
DLDevice
Source
§
type
Target
=
DLDevice
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>
ArgIntoRef
for
RValueRef
<T>
where T:
ObjectRefCore
+
AnyCompatible
,
Source
§
type
Target
=
RValueRef
<T>
Source
§
impl<T: ContainerElement +
Clone
>
ArgIntoRef
for &
Array
<T>
Source
§
type
Target
=
Array
<T>
Source
§
impl<T: ContainerElement +
Clone
>
ArgIntoRef
for
Array
<T>
Source
§
type
Target
=
Array
<T>
Source
§
impl<T: ContainerElement>
ArgIntoRef
for &
List
<T>
Source
§
type
Target
=
List
<T>
Source
§
impl<T: ContainerElement>
ArgIntoRef
for
List
<T>
Source
§
type
Target
=
List
<T>