pub enum Attribute {
Show 14 variants AlternativeCharSet, Bold, Blink, CharText, Dim, Leftline, Invisible, Italic, Normal, Overline, Reverse, Rightline, Strikeout, Underline,
}

Variants

AlternativeCharSet

Bold

CharText

Dim

Leftline

Invisible

Italic

Normal

Overline

Reverse

Rightline

Strikeout

Underline

Trait Implementations

Implement the | operator for combining two ’Attribute’s into Attributes

Example

use pancurses::{Attribute, Attributes};

let attributes = Attribute::Blink | Attribute::Reverse;
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
assert!(attributes.is_reverse());
The resulting type after applying the | operator.
Performs the | operation. Read more

Implement the | operator for adding an Attribute to Attributes

Example

use pancurses::{Attribute, Attributes};

let mut attributes = Attributes::new();
assert!(!attributes.is_bold());
attributes = attributes | Attribute::Bold;
assert!(attributes.is_bold());
The resulting type after applying the | operator.
Performs the | operation. Read more

Implement the | operator for combining a ColorPair and an Attribute to produce Attributes

Example

use pancurses::Attribute;
use pancurses::colorpair::ColorPair;

let attributes = ColorPair(5) | Attribute::Blink;
assert!(attributes.color_pair().0 == 5);
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
The resulting type after applying the | operator.
Performs the | operation. Read more

Implement the | operator for combining an Attribute and a ColorPair to produce Attributes

Example

use pancurses::Attribute;
use pancurses::colorpair::ColorPair;

let attributes = Attribute::Blink | ColorPair(2);
assert!(attributes.color_pair().0 == 2);
assert!(!attributes.is_bold());
assert!(attributes.is_blink());
The resulting type after applying the | operator.
Performs the | operation. Read more

Implement the ^ operator for disabling an Attribute from Attributes

Example

use pancurses::{Attribute, Attributes};

let mut attributes = Attributes::from(Attribute::Bold);
assert!(attributes.is_bold());
attributes = attributes ^ Attribute::Bold;
assert!(!attributes.is_bold());
The resulting type after applying the ^ operator.
Performs the ^ operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.