pub struct Pair {
pub color: Color,
pub text: Color,
}
Expand description
A pair of background and text colors.
Fields§
§color: Color
The background color.
text: Color
The text color.
It’s guaranteed to be readable on top of the background color
.
Implementations§
Trait Implementations§
impl Copy for Pair
impl StructuralPartialEq for Pair
Auto Trait Implementations§
impl Freeze for Pair
impl RefUnwindSafe for Pair
impl Send for Pair
impl Sync for Pair
impl Unpin for Pair
impl UnwindSafe for Pair
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