pub struct LabelColor(String);Expand description
A label color of six hexadecimal digits, stored in lowercase and without a leading hash.
Tuple Fields§
§0: StringImplementations§
Trait Implementations§
Source§impl Clone for LabelColor
impl Clone for LabelColor
Source§fn clone(&self) -> LabelColor
fn clone(&self) -> LabelColor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelColor
impl Debug for LabelColor
Source§impl Display for LabelColor
impl Display for LabelColor
impl Eq for LabelColor
Source§impl<'ʄ> Facet<'ʄ> for LabelColor
impl<'ʄ> Facet<'ʄ> for LabelColor
Source§impl Ord for LabelColor
impl Ord for LabelColor
Source§fn cmp(&self, other: &LabelColor) -> Ordering
fn cmp(&self, other: &LabelColor) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for LabelColor
impl PartialEq for LabelColor
Source§impl PartialOrd for LabelColor
impl PartialOrd for LabelColor
impl StructuralPartialEq for LabelColor
Source§impl TryFrom<&LabelColor> for String
impl TryFrom<&LabelColor> for String
Source§type Error = InvalidLabelColor
type Error = InvalidLabelColor
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for LabelColor
impl RefUnwindSafe for LabelColor
impl Send for LabelColor
impl Sync for LabelColor
impl Unpin for LabelColor
impl UnsafeUnpin for LabelColor
impl UnwindSafe for LabelColor
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.