Enum neotron_common_bios::FfiOption
source · #[repr(C)]pub enum FfiOption<T> {
Some(T),
None,
}
Expand description
All API functions which take/return optional values return this type.
We don’t use the Option
type from the standard library because that isn’t
FFI safe and may change layout between compiler versions.
Variants§
Some(T)
There is some data (the same as core::option::Option::Some
)
None
There is no data (the same as core::option::Option::None
)
Implementations§
Trait Implementations§
source§impl<T> PartialEq for FfiOption<T>where
T: PartialEq,
impl<T> PartialEq for FfiOption<T>where
T: PartialEq,
impl<T> Eq for FfiOption<T>where
T: Eq,
impl<T> StructuralPartialEq for FfiOption<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for FfiOption<T>where
T: RefUnwindSafe,
impl<T> Send for FfiOption<T>where
T: Send,
impl<T> Sync for FfiOption<T>where
T: Sync,
impl<T> Unpin for FfiOption<T>where
T: Unpin,
impl<T> UnwindSafe for FfiOption<T>where
T: UnwindSafe,
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