[−][src]Enum druid::Value
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)
Font(FontDescriptor)
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
impl RefUnwindSafe for Value
[src]
impl Send for Value
[src]
impl Sync for Value
[src]
impl Unpin for Value
[src]
impl UnwindSafe for Value
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AnyEq for T where
T: PartialEq<T> + Any,
[src]
T: PartialEq<T> + Any,
pub fn equals(&self, other: &(dyn Any + 'static)) -> bool
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> RoundFrom<T> for T
pub fn round_from(x: T) -> T
impl<T, U> RoundInto<U> for T where
U: RoundFrom<T>,
U: RoundFrom<T>,
pub fn round_into(self) -> U
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,