Struct unsegen::base::style::TextFormat [−][src]
pub struct TextFormat { pub bold: bool, pub italic: bool, pub invert: bool, pub underline: bool, // some fields omitted }
Expand description
Specifies how text is written to the terminal. Specified attributes include “bold”, “italic”, “invert”, and “underline” and can be combined freely.
Fields
bold: bool
italic: bool
invert: bool
underline: bool
Trait Implementations
impl Clone for TextFormat
[src]
impl Clone for TextFormat
[src]fn clone(&self) -> TextFormat
[src]
fn clone(&self) -> TextFormat
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TextFormat
[src]
impl Debug for TextFormat
[src]impl Default for TextFormat
[src]
impl Default for TextFormat
[src]impl PartialEq<TextFormat> for TextFormat
[src]
impl PartialEq<TextFormat> for TextFormat
[src]fn eq(&self, other: &TextFormat) -> bool
[src]
fn eq(&self, other: &TextFormat) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &TextFormat) -> bool
[src]
fn ne(&self, other: &TextFormat) -> bool
[src]This method tests for !=
.
impl Copy for TextFormat
[src]
impl Eq for TextFormat
[src]
impl StructuralEq for TextFormat
[src]
impl StructuralPartialEq for TextFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for TextFormat
impl Send for TextFormat
impl Sync for TextFormat
impl Unpin for TextFormat
impl UnwindSafe for TextFormat
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more