FfiEnumExt

Trait FfiEnumExt 

Source
pub trait FfiEnumExt: FfiEnum {
    // Required methods
    fn is_known(self) -> bool;
    fn repr(self) -> Self::Repr;
    fn into_enum(self) -> Self::Enum;
}
Expand description

Convenient operations on FfiEnum

Required Methods§

Source

fn is_known(self) -> bool

Indicates whether the value is known

Source

fn repr(self) -> Self::Repr

Gets the integer representation of the value

Source

fn into_enum(self) -> Self::Enum

Gets the rust enum of the value

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§