Enum wasmedge_sys::plugin::ProgramOptionType
source · pub enum ProgramOptionType {
Show 13 variants
None = 0,
Toggle = 1,
I8 = 2,
I16 = 3,
I32 = 4,
I64 = 5,
U8 = 6,
U16 = 7,
U32 = 8,
U64 = 9,
F32 = 10,
F64 = 11,
String = 12,
}
Expand description
Defines the type of the program options.
Variants§
None = 0
Toggle = 1
I8 = 2
I16 = 3
I32 = 4
I64 = 5
U8 = 6
U16 = 7
U32 = 8
U64 = 9
F32 = 10
F64 = 11
String = 12
Trait Implementations§
source§impl Clone for ProgramOptionType
impl Clone for ProgramOptionType
source§fn clone(&self) -> ProgramOptionType
fn clone(&self) -> ProgramOptionType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ProgramOptionType
impl Debug for ProgramOptionType
source§impl From<ProgramOptionType> for WasmEdge_ProgramOptionType
impl From<ProgramOptionType> for WasmEdge_ProgramOptionType
source§fn from(value: ProgramOptionType) -> Self
fn from(value: ProgramOptionType) -> Self
Converts to this type from the input type.
source§impl From<u32> for ProgramOptionType
impl From<u32> for ProgramOptionType
source§fn from(ty: WasmEdge_ProgramOptionType) -> Self
fn from(ty: WasmEdge_ProgramOptionType) -> Self
Converts to this type from the input type.
source§impl PartialEq for ProgramOptionType
impl PartialEq for ProgramOptionType
source§fn eq(&self, other: &ProgramOptionType) -> bool
fn eq(&self, other: &ProgramOptionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProgramOptionType
impl Eq for ProgramOptionType
impl StructuralEq for ProgramOptionType
impl StructuralPartialEq for ProgramOptionType
Auto Trait Implementations§
impl RefUnwindSafe for ProgramOptionType
impl Send for ProgramOptionType
impl Sync for ProgramOptionType
impl Unpin for ProgramOptionType
impl UnwindSafe for ProgramOptionType
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