[][src]Enum druid::Value

pub enum Value {
    Point(Point),
    Size(Size),
    Rect(Rect),
    Insets(Insets),
    Color(Color),
    Float(f64),
    Bool(bool),
    UnsignedInt(u64),
    String(ArcStr),
    Font(FontDescriptor),
}

A dynamic type representing all values that can be stored in an environment.

Variants

Point(Point)
Size(Size)
Rect(Rect)
Insets(Insets)
Color(Color)
Float(f64)
Bool(bool)
UnsignedInt(u64)
String(ArcStr)

Implementations

impl Value[src]

pub fn to_inner_unchecked<V: ValueType>(&self) -> V[src]

Get a reference to the inner object.

Panics

Panics when the value variant doesn't match the provided type.

Trait Implementations

impl Clone for Value[src]

impl Data for Value[src]

impl Debug for Value[src]

impl Into<Value> for f64[src]

impl Into<Value> for bool[src]

impl Into<Value> for u64[src]

impl Into<Value> for Color[src]

impl Into<Value> for Rect[src]

impl Into<Value> for Point[src]

impl Into<Value> for Size[src]

impl Into<Value> for Insets[src]

impl Into<Value> for ArcStr[src]

impl Into<Value> for FontDescriptor[src]

impl PartialEq<Value> for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AnyEq for T where
    T: PartialEq<T> + Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> RoundFrom<T> for T

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.