pub struct LabelColor { /* private fields */ }Expand description
The color of a label.
Crates such as css-named-colors may be used to get an RGB tuple for CSS-named colors.
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 From<&str> for LabelColor
DEPRECATED!
impl From<&str> for LabelColor
DEPRECATED!
Crates such as css-named-colors may be used to get an RGB tuple for CSS-named colors.
Source§impl From<Cow<'_, str>> for LabelColor
DEPRECATED!
impl From<Cow<'_, str>> for LabelColor
DEPRECATED!
Crates such as css-named-colors may be used to get an RGB tuple for CSS-named colors.
Source§impl From<GitlabDefaultColor> for LabelColor
impl From<GitlabDefaultColor> for LabelColor
Source§fn from(gdc: GitlabDefaultColor) -> Self
fn from(gdc: GitlabDefaultColor) -> Self
Converts to this type from the input type.
Source§impl From<String> for LabelColor
DEPRECATED!
impl From<String> for LabelColor
DEPRECATED!
Crates such as css-named-colors may be used to get an RGB tuple for CSS-named colors.
Source§impl ParamValue<'static> for &LabelColor
impl ParamValue<'static> for &LabelColor
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,
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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more