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

source

pub fn unwrap_bool(self) -> bool

Unwrap PropValue as Bool. Panics otherwise

source

pub fn unwrap_u8(self) -> u8

Unwrap PropValue as U8. Panics otherwise

source

pub fn unwrap_u16(self) -> u16

Unwrap PropValue as u16. Panics otherwise

source

pub fn unwrap_u32(self) -> u32

Unwrap PropValue as Bool. Panics otherwise

source

pub fn unwrap_u64(self) -> u64

Unwrap PropValue as u64. Panics otherwise

source

pub fn unwrap_u128(self) -> u128

Unwrap PropValue as u128. Panics otherwise

source

pub fn unwrap_usize(self) -> usize

Unwrap PropValue as usize. Panics otherwise

source

pub fn unwrap_i8(self) -> i8

Unwrap PropValue as I8. Panics otherwise

source

pub fn unwrap_i16(self) -> i16

Unwrap PropValue as i16. Panics otherwise

source

pub fn unwrap_i32(self) -> i32

Unwrap PropValue as i32. Panics otherwise

source

pub fn unwrap_i64(self) -> i64

Unwrap PropValue as u64. Panics otherwise

source

pub fn unwrap_i128(self) -> i128

Unwrap PropValue as i128. Panics otherwise

source

pub fn unwrap_isize(self) -> isize

Unwrap PropValue as isize. Panics otherwise

source

pub fn unwrap_f32(self) -> f32

Unwrap PropValue as f3. Panics otherwise

source

pub fn unwrap_f64(self) -> f64

Unwrap PropValue as F64. Panics otherwise

source

pub fn unwrap_str(self) -> String

Unwrap PropValue as str. Panics otherwise

source

pub fn unwrap_alignment(self) -> Alignment

Unwrap PropValue as alignment. Panics otherwise

source

pub fn unwrap_dataset(self) -> Dataset

Unwrap PropValue as Dataset. Panics otherwise

source

pub fn unwrap_input_type(self) -> InputType

Unwrap PropValue as InputType. Panics otherwise

source

pub fn unwrap_shape(self) -> Shape

Unwrap PropValue as shape. Panics otherwise

source

pub fn unwrap_style(self) -> Style

Unwrap PropValue as Style. Panics otherwise

source

pub fn unwrap_text_span(self) -> TextSpan

Unwrap PropValue as Bool. Panics otherwise

Trait Implementations§

source§

impl Clone for PropValue

source§

fn clone(&self) -> PropValue

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PropValue

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for PropValue

source§

fn eq(&self, other: &PropValue) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl StructuralPartialEq for PropValue

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.