#[non_exhaustive]pub enum FfiDataType {
F32,
F64,
I32,
C64,
C128,
Other(u32),
}Expand description
The element type of an FFI buffer, for the types handlers commonly use.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
F32
f32.
F64
f64.
I32
i32.
C64
c64 (complex64).
C128
c128 (complex128).
Other(u32)
Any other type, with its raw XLA_FFI_DataType value.
Trait Implementations§
Source§impl Clone for FfiDataType
impl Clone for FfiDataType
impl Copy for FfiDataType
Source§impl Debug for FfiDataType
impl Debug for FfiDataType
impl Eq for FfiDataType
Source§impl PartialEq for FfiDataType
impl PartialEq for FfiDataType
impl StructuralPartialEq for FfiDataType
Auto Trait Implementations§
impl Freeze for FfiDataType
impl RefUnwindSafe for FfiDataType
impl Send for FfiDataType
impl Sync for FfiDataType
impl Unpin for FfiDataType
impl UnsafeUnpin for FfiDataType
impl UnwindSafe for FfiDataType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more