Enum druid::KeyOrValue
source · pub enum KeyOrValue<T> {
Concrete(T),
Key(Key<T>),
}
Expand description
Variants§
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for KeyOrValue<T>
impl<T: Clone> Clone for KeyOrValue<T>
source§fn clone(&self) -> KeyOrValue<T>
fn clone(&self) -> KeyOrValue<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Data> Data for KeyOrValue<T>
impl<T: Data> Data for KeyOrValue<T>
source§impl<T: Debug> Debug for KeyOrValue<T>
impl<T: Debug> Debug for KeyOrValue<T>
source§impl From<(f64, f64, f64, f64)> for KeyOrValue<RoundedRectRadii>
impl From<(f64, f64, f64, f64)> for KeyOrValue<RoundedRectRadii>
source§fn from(f: (f64, f64, f64, f64)) -> KeyOrValue<RoundedRectRadii>
fn from(f: (f64, f64, f64, f64)) -> KeyOrValue<RoundedRectRadii>
Converts to this type from the input type.
source§impl<T: ValueType> From<Key<T>> for KeyOrValue<T>
impl<T: ValueType> From<Key<T>> for KeyOrValue<T>
source§fn from(key: Key<T>) -> KeyOrValue<T>
fn from(key: Key<T>) -> KeyOrValue<T>
Converts to this type from the input type.
source§impl<T: Into<Value>> From<T> for KeyOrValue<T>
impl<T: Into<Value>> From<T> for KeyOrValue<T>
source§fn from(value: T) -> KeyOrValue<T>
fn from(value: T) -> KeyOrValue<T>
Converts to this type from the input type.
source§impl From<f64> for KeyOrValue<RoundedRectRadii>
impl From<f64> for KeyOrValue<RoundedRectRadii>
source§fn from(f: f64) -> KeyOrValue<RoundedRectRadii>
fn from(f: f64) -> KeyOrValue<RoundedRectRadii>
Converts to this type from the input type.
source§impl<T> KeyLike<T> for KeyOrValue<T>
impl<T> KeyLike<T> for KeyOrValue<T>
source§impl<T: PartialEq> PartialEq<KeyOrValue<T>> for KeyOrValue<T>
impl<T: PartialEq> PartialEq<KeyOrValue<T>> for KeyOrValue<T>
source§fn eq(&self, other: &KeyOrValue<T>) -> bool
fn eq(&self, other: &KeyOrValue<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Eq> Eq for KeyOrValue<T>
impl<T> StructuralEq for KeyOrValue<T>
impl<T> StructuralPartialEq for KeyOrValue<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for KeyOrValue<T>where T: RefUnwindSafe,
impl<T> Send for KeyOrValue<T>where T: Send,
impl<T> Sync for KeyOrValue<T>where T: Sync,
impl<T> Unpin for KeyOrValue<T>where T: Unpin,
impl<T> UnwindSafe for KeyOrValue<T>where T: UnwindSafe,
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.