pub struct ViewCell {
pub character: Option<char>,
pub style: Style,
}Fields§
§character: Option<char>§style: StyleImplementations§
Source§impl ViewCell
impl ViewCell
pub const fn new() -> Self
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) -> Self
pub const fn with_bold(self, bold: bool) -> Self
pub const fn with_underline(self, underline: bool) -> Self
pub const fn with_foreground(self, foreground: Rgb24) -> Self
pub const fn with_background(self, background: Rgb24) -> Self
pub const fn without_character(self) -> Self
pub const fn without_bold(self) -> Self
pub const fn without_underline(self) -> Self
pub const fn without_foreground(self) -> Self
pub const fn without_background(self) -> Self
pub const fn with_style(self, style: Style) -> Self
pub fn coalesce(self, other: Self) -> Self
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