Struct crossterm::style::SetAttributes
source · [−]pub struct SetAttributes(pub Attributes);
Expand description
A command that sets several attributes.
See Attributes
for more info.
Notes
Commands must be executed/queued for execution otherwise they do nothing.
Tuple Fields
0: Attributes
Trait Implementations
sourceimpl Clone for SetAttributes
impl Clone for SetAttributes
sourcefn clone(&self) -> SetAttributes
fn clone(&self) -> SetAttributes
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 SetAttributes
impl Command for SetAttributes
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 SetAttributes
impl Debug for SetAttributes
sourceimpl PartialEq<SetAttributes> for SetAttributes
impl PartialEq<SetAttributes> for SetAttributes
sourcefn eq(&self, other: &SetAttributes) -> bool
fn eq(&self, other: &SetAttributes) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetAttributes) -> bool
fn ne(&self, other: &SetAttributes) -> bool
This method tests for !=
.
impl Copy for SetAttributes
impl Eq for SetAttributes
impl StructuralEq for SetAttributes
impl StructuralPartialEq for SetAttributes
Auto Trait Implementations
impl RefUnwindSafe for SetAttributes
impl Send for SetAttributes
impl Sync for SetAttributes
impl Unpin for SetAttributes
impl UnwindSafe for SetAttributes
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