Struct bracket_color::color_pair::ColorPair
source · pub struct ColorPair {
pub fg: RGBA,
pub bg: RGBA,
}Expand description
Represents two colors together, a foreground and a background. Frequently used to represent a glyph rendered on a console with a solid background color.
Fields§
§fg: RGBAThe foreground color
bg: RGBAThe background color
Implementations§
Trait Implementations§
source§impl PartialEq for ColorPair
impl PartialEq for ColorPair
impl Copy for ColorPair
impl StructuralPartialEq for ColorPair
Auto Trait Implementations§
impl RefUnwindSafe for ColorPair
impl Send for ColorPair
impl Sync for ColorPair
impl Unpin for ColorPair
impl UnwindSafe for ColorPair
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