Enum titanium::desktop::gui::libdruid::KeyOrValue
pub enum KeyOrValue<T> {
Concrete(T),
Key(Key<T>),
}
Expand description
Variants§
Implementations§
Trait Implementations§
§impl<T> Clone for KeyOrValue<T>where
T: Clone,
impl<T> Clone for KeyOrValue<T>where T: Clone,
§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 more§impl<T> Data for KeyOrValue<T>where
T: Data,
impl<T> Data for KeyOrValue<T>where T: Data,
§fn same(&self, other: &KeyOrValue<T>) -> bool
fn same(&self, other: &KeyOrValue<T>) -> bool
Determine whether two values are the same. Read more
§impl<T> Debug for KeyOrValue<T>where
T: Debug,
impl<T> Debug for KeyOrValue<T>where T: Debug,
§impl From<(f64, f64, f64, f64)> for KeyOrValue<RoundedRectRadii>
impl From<(f64, f64, f64, f64)> for KeyOrValue<RoundedRectRadii>
§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.
§impl<T> From<Key<T>> for KeyOrValue<T>where
T: ValueType,
impl<T> From<Key<T>> for KeyOrValue<T>where T: ValueType,
§fn from(key: Key<T>) -> KeyOrValue<T>
fn from(key: Key<T>) -> KeyOrValue<T>
Converts to this type from the input type.
§impl<T> From<T> for KeyOrValue<T>where
T: Into<Value>,
impl<T> From<T> for KeyOrValue<T>where T: Into<Value>,
§fn from(value: T) -> KeyOrValue<T>
fn from(value: T) -> KeyOrValue<T>
Converts to this type from the input type.
§impl From<f64> for KeyOrValue<Insets>
impl From<f64> for KeyOrValue<Insets>
§fn from(f: f64) -> KeyOrValue<Insets>
fn from(f: f64) -> KeyOrValue<Insets>
Converts to this type from the input type.
§impl From<f64> for KeyOrValue<RoundedRectRadii>
impl From<f64> for KeyOrValue<RoundedRectRadii>
§fn from(f: f64) -> KeyOrValue<RoundedRectRadii>
fn from(f: f64) -> KeyOrValue<RoundedRectRadii>
Converts to this type from the input type.
§impl<T> KeyLike<T> for KeyOrValue<T>
impl<T> KeyLike<T> for KeyOrValue<T>
§impl<T> PartialEq<KeyOrValue<T>> for KeyOrValue<T>where
T: PartialEq<T>,
impl<T> PartialEq<KeyOrValue<T>> for KeyOrValue<T>where T: PartialEq<T>,
§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 for KeyOrValue<T>where T: Eq,
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§
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> Pointable for T
impl<T> Pointable for T
§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.