pub enum ColorOrder {
Rgb,
Rbg,
Grb,
Gbr,
Brg,
Bgr,
}Expand description
One of the six orders of red, green and blue. It reads as its letters (“GRB”) and parses from them in any case: “grb” is GRB.
Variants§
Implementations§
Source§impl ColorOrder
impl ColorOrder
Sourcepub fn channels(self) -> [EmittedColor; 3]
pub fn channels(self) -> [EmittedColor; 3]
The channels on the wire, first to last.
Sourcepub fn is_identity(self) -> bool
pub fn is_identity(self) -> bool
Whether the channels already are in the order gled renders.
Trait Implementations§
Source§impl Clone for ColorOrder
impl Clone for ColorOrder
impl Copy for ColorOrder
Source§impl Debug for ColorOrder
impl Debug for ColorOrder
Source§impl Default for ColorOrder
impl Default for ColorOrder
Source§impl<'de> Deserialize<'de> for ColorOrder
impl<'de> Deserialize<'de> for ColorOrder
Source§fn 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
Source§impl Display for ColorOrder
impl Display for ColorOrder
impl Eq for ColorOrder
Source§impl FromStr for ColorOrder
impl FromStr for ColorOrder
Source§impl Hash for ColorOrder
impl Hash for ColorOrder
Source§impl IntoEnumIterator for ColorOrder
impl IntoEnumIterator for ColorOrder
Source§impl PartialEq for ColorOrder
impl PartialEq for ColorOrder
Source§impl Serialize for ColorOrder
impl Serialize for ColorOrder
impl StructuralPartialEq for ColorOrder
Auto Trait Implementations§
impl Freeze for ColorOrder
impl RefUnwindSafe for ColorOrder
impl Send for ColorOrder
impl Sync for ColorOrder
impl Unpin for ColorOrder
impl UnsafeUnpin for ColorOrder
impl UnwindSafe for ColorOrder
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<T> DebugAny for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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