Fields
alignment: Alignment
color_style: Option<Style>
Implementations
sourceimpl TextStyle
impl TextStyle
pub fn new() -> TextStyle
pub fn bold(&self, bool_value: Option<bool>) -> TextStyle
pub fn is_bold(&self) -> bool
pub fn dimmed(&self) -> TextStyle
pub fn is_dimmed(&self) -> bool
pub fn italic(&self) -> TextStyle
pub fn is_italic(&self) -> bool
pub fn underline(&self) -> TextStyle
pub fn is_underline(&self) -> bool
pub fn blink(&self) -> TextStyle
pub fn is_blink(&self) -> bool
pub fn reverse(&self) -> TextStyle
pub fn is_reverse(&self) -> bool
pub fn strikethrough(&self) -> TextStyle
pub fn is_strikethrough(&self) -> bool
pub fn fg(&self, foreground: Color) -> TextStyle
pub fn on(&self, background: Color) -> TextStyle
pub fn bg(&self, background: Color) -> TextStyle
pub fn alignment(&self, align: Alignment) -> TextStyle
pub fn style(&self, style: Style) -> TextStyle
pub fn basic_center() -> TextStyle
pub fn basic_right() -> TextStyle
pub fn basic_left() -> TextStyle
pub fn default_header() -> TextStyle
pub fn default_field() -> TextStyle
pub fn with_attributes(bo: bool, al: Alignment, co: Color) -> TextStyle
pub fn with_style(al: Alignment, style: Style) -> TextStyle
Trait Implementations
impl Copy for TextStyle
Auto Trait Implementations
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more