[−][src]Enum twitchchat::twitch::color::TwitchColor
Named Twitch colors
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
RGB (hex): #0000FF
RGB (hex): #8A2BE2
RGB (hex): #5F9EA0
RGB (hex): #D2691E
RGB (hex): #FF7F50
RGB (hex): #1E90FF
RGB (hex): #B22222
RGB (hex): #DAA520
RGB (hex): #008000
RGB (hex): #FF69B4
RGB (hex): #FF4500
RGB (hex): #FF0000
RGB (hex): #2E8B57
RGB (hex): #00FF7F
RGB (hex): #ADFF2F
Turbo colors are custom user-selected colors
Trait Implementations
impl Clone for TwitchColor
[src]
fn clone(&self) -> TwitchColor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for TwitchColor
[src]
impl Debug for TwitchColor
[src]
impl<'de> Deserialize<'de> for TwitchColor
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Eq for TwitchColor
[src]
impl From<RGB> for TwitchColor
[src]
impl From<TwitchColor> for RGB
[src]
fn from(color: TwitchColor) -> Self
[src]
impl Hash for TwitchColor
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for TwitchColor
[src]
fn cmp(&self, other: &TwitchColor) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<TwitchColor> for TwitchColor
[src]
fn eq(&self, other: &TwitchColor) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<TwitchColor> for TwitchColor
[src]
fn partial_cmp(&self, other: &TwitchColor) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for TwitchColor
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for TwitchColor
[src]
impl StructuralPartialEq for TwitchColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for TwitchColor
impl Send for TwitchColor
impl Sync for TwitchColor
impl Unpin for TwitchColor
impl UnwindSafe for TwitchColor
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,