[][src]Enum matrixise::Attribute

pub enum Attribute {
    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

impl BitOr<Attribute> for Attribute[src]

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());

type Output = Attributes

The resulting type after applying the | operator.

impl BitOr<Attribute> for Attributes[src]

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());

type Output = Attributes

The resulting type after applying the | operator.

impl BitOr<Attribute> for ColorPair[src]

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());

type Output = Attributes

The resulting type after applying the | operator.

impl BitOr<ColorPair> for Attribute[src]

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());

type Output = Attributes

The resulting type after applying the | operator.

impl BitXor<Attribute> for Attributes[src]

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());

type Output = Attributes

The resulting type after applying the ^ operator.

impl Clone for Attribute[src]

impl Copy for Attribute[src]

impl Debug for Attribute[src]

impl Eq for Attribute[src]

impl From<Attribute> for Attributes[src]

impl Hash for Attribute[src]

impl PartialEq<Attribute> for Attribute[src]

impl StructuralEq for Attribute[src]

impl StructuralPartialEq for Attribute[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,