pub struct Paint<T> { /* private fields */ }
Expand description
Simple structure for handling most basic mirc color painting needs
Implementations§
Source§impl<T> Paint<T>
impl<T> Paint<T>
pub fn new(fg: Color, bg: Color, content: T) -> Paint<T>
pub fn white(content: T) -> Paint<T>
pub fn black(content: T) -> Paint<T>
pub fn blue(content: T) -> Paint<T>
pub fn green(content: T) -> Paint<T>
pub fn red(content: T) -> Paint<T>
pub fn brown(content: T) -> Paint<T>
pub fn purple(content: T) -> Paint<T>
pub fn orange(content: T) -> Paint<T>
pub fn yellow(content: T) -> Paint<T>
pub fn lightgreen(content: T) -> Paint<T>
pub fn cyan(content: T) -> Paint<T>
pub fn lightcyan(content: T) -> Paint<T>
pub fn lightblue(content: T) -> Paint<T>
pub fn pink(content: T) -> Paint<T>
pub fn grey(content: T) -> Paint<T>
pub fn lightgrey(content: T) -> Paint<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Paint<T>where
T: Freeze,
impl<T> RefUnwindSafe for Paint<T>where
T: RefUnwindSafe,
impl<T> Send for Paint<T>where
T: Send,
impl<T> Sync for Paint<T>where
T: Sync,
impl<T> Unpin for Paint<T>where
T: Unpin,
impl<T> UnwindSafe for Paint<T>where
T: UnwindSafe,
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