Enum melodium_common::executive::value::Value
source · pub enum Value {
Show 34 variants
Void(()),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
I128(i128),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
U128(u128),
F32(f32),
F64(f64),
Bool(bool),
Byte(u8),
Char(char),
String(String),
VecVoid(Vec<()>),
VecI8(Vec<i8>),
VecI16(Vec<i16>),
VecI32(Vec<i32>),
VecI64(Vec<i64>),
VecI128(Vec<i128>),
VecU8(Vec<u8>),
VecU16(Vec<u16>),
VecU32(Vec<u32>),
VecU64(Vec<u64>),
VecU128(Vec<u128>),
VecF32(Vec<f32>),
VecF64(Vec<f64>),
VecBool(Vec<bool>),
VecByte(Vec<u8>),
VecChar(Vec<char>),
VecString(Vec<String>),
}Variants§
Void(())
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
F32(f32)
F64(f64)
Bool(bool)
Byte(u8)
Char(char)
String(String)
VecVoid(Vec<()>)
VecI8(Vec<i8>)
VecI16(Vec<i16>)
VecI32(Vec<i32>)
VecI64(Vec<i64>)
VecI128(Vec<i128>)
VecU8(Vec<u8>)
VecU16(Vec<u16>)
VecU32(Vec<u32>)
VecU64(Vec<u64>)
VecU128(Vec<u128>)
VecF32(Vec<f32>)
VecF64(Vec<f64>)
VecBool(Vec<bool>)
VecByte(Vec<u8>)
VecChar(Vec<char>)
VecString(Vec<String>)
Implementations§
source§impl Value
impl Value
pub fn void(self)
pub fn u8(self) -> u8
pub fn u16(self) -> u16
pub fn u32(self) -> u32
pub fn u64(self) -> u64
pub fn u128(self) -> u128
pub fn i8(self) -> i8
pub fn i16(self) -> i16
pub fn i32(self) -> i32
pub fn i64(self) -> i64
pub fn i128(self) -> i128
pub fn f32(self) -> f32
pub fn f64(self) -> f64
pub fn bool(self) -> bool
pub fn byte(self) -> u8
pub fn char(self) -> char
pub fn string(self) -> String
pub fn vec_void(self) -> Vec<()>
pub fn vec_u8(self) -> Vec<u8>
pub fn vec_u16(self) -> Vec<u16>
pub fn vec_u32(self) -> Vec<u32>
pub fn vec_u64(self) -> Vec<u64>
pub fn vec_u128(self) -> Vec<u128>
pub fn vec_i8(self) -> Vec<i8>
pub fn vec_i16(self) -> Vec<i16>
pub fn vec_i32(self) -> Vec<i32>
pub fn vec_i64(self) -> Vec<i64>
pub fn vec_i128(self) -> Vec<i128>
pub fn vec_f32(self) -> Vec<f32>
pub fn vec_f64(self) -> Vec<f64>
pub fn vec_bool(self) -> Vec<bool>
pub fn vec_byte(self) -> Vec<u8>
pub fn vec_char(self) -> Vec<char>
pub fn vec_string(self) -> Vec<String>
Trait Implementations§
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
Blanket Implementations§
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.