[][src]Enum druid::Value

pub enum Value {
    Point(Point),
    Size(Size),
    Rect(Rect),
    Color(Color),
    LinearGradient(Arc<LinearGradient>),
    Float(f64),
    String(String),
}

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

Variants

Point(Point)
Size(Size)
Rect(Rect)
Color(Color)
LinearGradient(Arc<LinearGradient>)
Float(f64)
String(String)

Methods

impl Value[src]

pub fn to_inner_unchecked<'a, V: ValueType<'a>>(&'a 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 Data for Value[src]

impl Into<Value> for f64[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 String[src]

impl Into<Value> for LinearGradient[src]

impl Into<Value> for Arc<LinearGradient>[src]

impl Clone for Value[src]

impl Debug for Value[src]

Auto Trait Implementations

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnwindSafe for Value

impl RefUnwindSafe for Value

Blanket Implementations

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

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

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.

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

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

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

impl<T> RoundFrom<T> for T

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