Struct crossterm::style::SetAttribute
source · [−]pub struct SetAttribute(pub Attribute);
Expand description
Tuple Fields
0: Attribute
Trait Implementations
sourceimpl Clone for SetAttribute
impl Clone for SetAttribute
sourcefn clone(&self) -> SetAttribute
fn clone(&self) -> SetAttribute
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Command for SetAttribute
impl Command for SetAttribute
sourcefn write_ansi(&self, f: &mut impl Write) -> Result
fn write_ansi(&self, f: &mut impl Write) -> Result
Write an ANSI representation of this command to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this. Read more
sourceimpl Debug for SetAttribute
impl Debug for SetAttribute
sourceimpl Display for SetAttribute
impl Display for SetAttribute
sourceimpl PartialEq<SetAttribute> for SetAttribute
impl PartialEq<SetAttribute> for SetAttribute
sourcefn eq(&self, other: &SetAttribute) -> bool
fn eq(&self, other: &SetAttribute) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetAttribute) -> bool
fn ne(&self, other: &SetAttribute) -> bool
This method tests for !=
.
impl Copy for SetAttribute
impl Eq for SetAttribute
impl StructuralEq for SetAttribute
impl StructuralPartialEq for SetAttribute
Auto Trait Implementations
impl RefUnwindSafe for SetAttribute
impl Send for SetAttribute
impl Sync for SetAttribute
impl Unpin for SetAttribute
impl UnwindSafe for SetAttribute
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