Struct pancurses::colorpair::ColorPair
[−]
[src]
pub struct ColorPair(pub u8);
Trait Implementations
impl Copy for ColorPair
[src]
impl Clone for ColorPair
[src]
fn clone(&self) -> ColorPair
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ColorPair
[src]
impl PartialEq for ColorPair
[src]
fn eq(&self, __arg_0: &ColorPair) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ColorPair) -> bool
This method tests for !=
.
impl Eq for ColorPair
[src]
impl Hash for ColorPair
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
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
fn bitor(self, rhs: Attribute) -> Attributes
The method for the |
operator