pub struct Style { /* private fields */ }
Expand description
Expresses how to render a piece of text in the terminal.
Implementations§
Source§impl Style
impl Style
Sourcepub fn new() -> Style
👎Deprecated since 0.3.0: it may be removed in the future, use Style::builder()
instead
pub fn new() -> Style
Style::builder()
insteadConstructs a Style
with no styles.
Sourcepub fn builder() -> StyleBuilder
pub fn builder() -> StyleBuilder
Gets a StyleBuilder
.
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 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