pub struct Style { /* private fields */ }Implementations§
Source§impl Style
impl Style
pub fn new() -> Self
pub fn fg(self, color: Color) -> Self
pub fn bg(self, color: Color) -> Self
pub fn bold(self) -> Self
pub fn italic(self) -> Self
pub fn underline(self) -> Self
pub fn strikethrough(self) -> Self
pub fn dim(self) -> Self
pub fn reverse(self) -> Self
pub fn foreground(&self) -> Option<Color>
pub fn background(&self) -> Option<Color>
pub fn is_bold(&self) -> bool
pub fn is_italic(&self) -> bool
pub fn is_underline(&self) -> bool
pub fn is_strikethrough(&self) -> bool
pub fn is_dim(&self) -> bool
pub fn is_reverse(&self) -> bool
pub fn padding_top(self, n: u16) -> Self
pub fn padding_right(self, n: u16) -> Self
pub fn padding_bottom(self, n: u16) -> Self
pub fn padding_left(self, n: u16) -> Self
pub fn padding(self, vertical: u16, horizontal: u16) -> Self
pub fn margin_top(self, n: u16) -> Self
pub fn margin_right(self, n: u16) -> Self
pub fn margin_bottom(self, n: u16) -> Self
pub fn margin_left(self, n: u16) -> Self
pub fn margin(self, vertical: u16, horizontal: u16) -> Self
pub fn border(self, border: Border) -> Self
pub fn border_fg(self, color: Color) -> Self
pub fn width(self, w: u16) -> Self
pub fn height(self, h: u16) -> Self
pub fn align(self, a: Align) -> Self
pub fn render(&self, content: &str) -> String
Trait Implementations§
impl Eq for Style
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnsafeUnpin for Style
impl UnwindSafe for Style
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