#[non_exhaustive]pub enum FfiAttr {
Bool(bool),
Int(i64),
Float(f64),
Str(String),
Other,
}Expand description
An attribute of an FFI call (mhlo.backend_config of the custom call).
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.
Bool(bool)
A boolean.
Int(i64)
An integer of any width.
Float(f64)
A float.
Str(String)
A string.
Other
An attribute of another kind (arrays and dictionaries).
Trait Implementations§
impl StructuralPartialEq for FfiAttr
Auto Trait Implementations§
impl Freeze for FfiAttr
impl RefUnwindSafe for FfiAttr
impl Send for FfiAttr
impl Sync for FfiAttr
impl Unpin for FfiAttr
impl UnsafeUnpin for FfiAttr
impl UnwindSafe for FfiAttr
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