[−][src]Struct crosscurses::colorpair::ColorPair
Trait Implementations
impl BitOr<Attribute> for ColorPair
[src]
Implement the | operator for combining a ColorPair
and an Attribute
to produce Attributes
Example
use crosscurses::Attribute; use crosscurses::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
[src]
impl BitOr<ColorPair> for Attributes
[src]
Implement the | operator for setting a color pair on an Attributes
object
Example
use crosscurses::{Attribute, Attributes}; use crosscurses::colorpair::ColorPair; let mut attributes = Attributes::new(); assert!(attributes.color_pair().0 == 0); attributes = attributes | ColorPair(1); assert!(attributes.color_pair().0 == 1);
type Output = Attributes
The resulting type after applying the |
operator.
fn bitor(self, rhs: ColorPair) -> Attributes
[src]
impl BitOr<ColorPair> for Attribute
[src]
Implement the | operator for combining an Attribute
and a ColorPair
to produce Attributes
Example
use crosscurses::Attribute; use crosscurses::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.
fn bitor(self, rhs: ColorPair) -> Attributes
[src]
impl Clone for ColorPair
[src]
impl Copy for ColorPair
[src]
impl Debug for ColorPair
[src]
impl Eq for ColorPair
[src]
impl From<ColorPair> for chtype
[src]
impl Hash for ColorPair
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<ColorPair> for ColorPair
[src]
impl StructuralEq for ColorPair
[src]
impl StructuralPartialEq for ColorPair
[src]
Auto Trait Implementations
impl RefUnwindSafe for ColorPair
impl Send for ColorPair
impl Sync for ColorPair
impl Unpin for ColorPair
impl UnwindSafe for ColorPair
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,