pub struct DebugColor {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
RGBA color for debug rendering (0-255 per channel)
Fields§
§r: u8Red channel
g: u8Green channel
b: u8Blue channel
a: u8Alpha channel
Implementations§
Source§impl DebugColor
impl DebugColor
Trait Implementations§
Source§impl Clone for DebugColor
impl Clone for DebugColor
impl Copy for DebugColor
Source§impl Debug for DebugColor
impl Debug for DebugColor
impl Eq for DebugColor
Source§impl PartialEq for DebugColor
impl PartialEq for DebugColor
impl StructuralPartialEq for DebugColor
Auto Trait Implementations§
impl Freeze for DebugColor
impl RefUnwindSafe for DebugColor
impl Send for DebugColor
impl Sync for DebugColor
impl Unpin for DebugColor
impl UnsafeUnpin for DebugColor
impl UnwindSafe for DebugColor
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> 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