pub struct GenColor(/* private fields */);Expand description
A pre-generated ANSI color code.
This type wraps a raw color code buffer generated by ColorGenerator.
It can be applied to labels using Report::with_color.
§Note
GenColor is more efficient than trait-object based colors because it avoids dynamic dispatch and stores the color code directly.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GenColor
impl RefUnwindSafe for GenColor
impl Send for GenColor
impl Sync for GenColor
impl Unpin for GenColor
impl UnwindSafe for GenColor
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