pub enum PropValue {
Show 24 variants
Bool(bool),
U8(u8),
U16(u16),
U32(u32),
U64(u64),
U128(u128),
Usize(usize),
I8(i8),
I16(i16),
I32(i32),
I64(i64),
I128(i128),
Isize(isize),
F64(f64),
F32(f32),
Str(String),
Alignment(Alignment),
Color(Color),
Dataset(Dataset),
InputType(InputType),
Shape(Shape),
Style(Style),
Table(Table),
TextSpan(TextSpan),
}
Expand description
Value describes the value contained in a PropPayload
Variants§
Bool(bool)
U8(u8)
U16(u16)
U32(u32)
U64(u64)
U128(u128)
Usize(usize)
I8(i8)
I16(i16)
I32(i32)
I64(i64)
I128(i128)
Isize(isize)
F64(f64)
F32(f32)
Str(String)
Alignment(Alignment)
Color(Color)
Dataset(Dataset)
InputType(InputType)
Shape(Shape)
Style(Style)
Table(Table)
TextSpan(TextSpan)
Implementations§
source§impl PropValue
impl PropValue
sourcepub fn unwrap_bool(self) -> bool
pub fn unwrap_bool(self) -> bool
Unwrap PropValue as Bool. Panics otherwise
sourcepub fn unwrap_u16(self) -> u16
pub fn unwrap_u16(self) -> u16
Unwrap PropValue as u16. Panics otherwise
sourcepub fn unwrap_u32(self) -> u32
pub fn unwrap_u32(self) -> u32
Unwrap PropValue as Bool. Panics otherwise
sourcepub fn unwrap_u64(self) -> u64
pub fn unwrap_u64(self) -> u64
Unwrap PropValue as u64. Panics otherwise
sourcepub fn unwrap_u128(self) -> u128
pub fn unwrap_u128(self) -> u128
Unwrap PropValue as u128. Panics otherwise
sourcepub fn unwrap_usize(self) -> usize
pub fn unwrap_usize(self) -> usize
Unwrap PropValue as usize. Panics otherwise
sourcepub fn unwrap_i16(self) -> i16
pub fn unwrap_i16(self) -> i16
Unwrap PropValue as i16. Panics otherwise
sourcepub fn unwrap_i32(self) -> i32
pub fn unwrap_i32(self) -> i32
Unwrap PropValue as i32. Panics otherwise
sourcepub fn unwrap_i64(self) -> i64
pub fn unwrap_i64(self) -> i64
Unwrap PropValue as u64. Panics otherwise
sourcepub fn unwrap_i128(self) -> i128
pub fn unwrap_i128(self) -> i128
Unwrap PropValue as i128. Panics otherwise
sourcepub fn unwrap_isize(self) -> isize
pub fn unwrap_isize(self) -> isize
Unwrap PropValue as isize. Panics otherwise
sourcepub fn unwrap_f32(self) -> f32
pub fn unwrap_f32(self) -> f32
Unwrap PropValue as f3. Panics otherwise
sourcepub fn unwrap_f64(self) -> f64
pub fn unwrap_f64(self) -> f64
Unwrap PropValue as F64. Panics otherwise
sourcepub fn unwrap_str(self) -> String
pub fn unwrap_str(self) -> String
Unwrap PropValue as str. Panics otherwise
sourcepub fn unwrap_alignment(self) -> Alignment
pub fn unwrap_alignment(self) -> Alignment
Unwrap PropValue as alignment. Panics otherwise
sourcepub fn unwrap_dataset(self) -> Dataset
pub fn unwrap_dataset(self) -> Dataset
Unwrap PropValue as Dataset. Panics otherwise
sourcepub fn unwrap_input_type(self) -> InputType
pub fn unwrap_input_type(self) -> InputType
Unwrap PropValue as InputType. Panics otherwise
sourcepub fn unwrap_shape(self) -> Shape
pub fn unwrap_shape(self) -> Shape
Unwrap PropValue as shape. Panics otherwise
sourcepub fn unwrap_style(self) -> Style
pub fn unwrap_style(self) -> Style
Unwrap PropValue as Style. Panics otherwise
sourcepub fn unwrap_text_span(self) -> TextSpan
pub fn unwrap_text_span(self) -> TextSpan
Unwrap PropValue as Bool. Panics otherwise