Enum lobsterchat::component::TextColor
source · [−]pub enum TextColor {
Named(NamedColor),
Hex(String),
}
Expand description
A text color formatting
Variants
Named(NamedColor)
A named color
Hex(String)
A hex string color
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TextColor
impl<'de> Deserialize<'de> for TextColor
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialOrd<TextColor> for TextColor
impl PartialOrd<TextColor> for TextColor
sourcefn partial_cmp(&self, other: &TextColor) -> Option<Ordering>
fn partial_cmp(&self, other: &TextColor) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl StructuralPartialEq for TextColor
Auto Trait Implementations
impl RefUnwindSafe for TextColor
impl Send for TextColor
impl Sync for TextColor
impl Unpin for TextColor
impl UnwindSafe for TextColor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more