pub enum Value {
Point(Point),
Size(Size),
Rect(Rect),
Insets(Insets),
Color(Color),
Float(f64),
Bool(bool),
UnsignedInt(u64),
String(ArcStr),
Font(FontDescriptor),
RoundedRectRadii(RoundedRectRadii),
Other(Arc<dyn Any + Send + Sync>),
}
Expand description
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)
RoundedRectRadii(RoundedRectRadii)
Other(Arc<dyn Any + Send + Sync>)
Implementations§
Trait Implementations§
source§impl From<FontDescriptor> for Value
impl From<FontDescriptor> for Value
source§fn from(val: FontDescriptor) -> Value
fn from(val: FontDescriptor) -> Value
Converts to this type from the input type.
source§impl From<RoundedRectRadii> for Value
impl From<RoundedRectRadii> for Value
source§fn from(val: RoundedRectRadii) -> Value
fn from(val: RoundedRectRadii) -> Value
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl !UnwindSafe for Value
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.