pub struct ViewCell {
pub character: Option<char>,
pub style: Style,
}
Fields§
§character: Option<char>
§style: Style
Implementations§
Source§impl ViewCell
impl ViewCell
pub const fn new() -> ViewCell
pub const fn character(&self) -> Option<char>
pub const fn bold(&self) -> Option<bool>
pub const fn underline(&self) -> Option<bool>
pub const fn foreground(&self) -> Option<Rgb24>
pub const fn background(&self) -> Option<Rgb24>
pub const fn with_character(self, character: char) -> ViewCell
pub const fn with_bold(self, bold: bool) -> ViewCell
pub const fn with_underline(self, underline: bool) -> ViewCell
pub const fn with_foreground(self, foreground: Rgb24) -> ViewCell
pub const fn with_background(self, background: Rgb24) -> ViewCell
pub const fn without_character(self) -> ViewCell
pub const fn without_bold(self) -> ViewCell
pub const fn without_underline(self) -> ViewCell
pub const fn without_foreground(self) -> ViewCell
pub const fn without_background(self) -> ViewCell
pub const fn with_style(self, style: Style) -> ViewCell
pub fn coalesce(self, other: ViewCell) -> ViewCell
Trait Implementations§
impl Copy for ViewCell
impl Eq for ViewCell
impl StructuralPartialEq for ViewCell
Auto Trait Implementations§
impl Freeze for ViewCell
impl RefUnwindSafe for ViewCell
impl Send for ViewCell
impl Sync for ViewCell
impl Unpin for ViewCell
impl UnwindSafe for ViewCell
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