Struct bracket_terminal::rex::XpColor
source · [−]Expand description
Structure representing the components of one color
Fields
r: u8
Red component 0..255
g: u8
Green component 0..255
b: u8
Blue component 0..255
Implementations
sourceimpl XpColor
impl XpColor
sourcepub const TRANSPARENT: XpColor = Self{ r: 255, g: 0, b: 255,}
pub const TRANSPARENT: XpColor = Self{ r: 255, g: 0, b: 255,}
color 0xff00ff (hot pink) is regarded as transparent
sourcepub fn is_transparent(self) -> bool
pub fn is_transparent(self) -> bool
Return whether this color is considered transparent (if this is the background color of a cell, the layer below it will see through)
Trait Implementations
impl Copy for XpColor
impl Eq for XpColor
impl StructuralEq for XpColor
impl StructuralPartialEq for XpColor
Auto Trait Implementations
impl RefUnwindSafe for XpColor
impl Send for XpColor
impl Sync for XpColor
impl Unpin for XpColor
impl UnwindSafe for XpColor
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