[−][src]Enum matrixise::Attribute
Variants
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.
fn bitor(self, rhs: Attribute) -> Attributes
[src]
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.
fn bitor(self, rhs: Attribute) -> Attributes
[src]
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
[src]
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.
fn bitor(self, rhs: ColorPair) -> Attributes
[src]
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.
fn bitxor(self, rhs: Attribute) -> Attributes
[src]
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]
fn from(attribute: Attribute) -> Attributes
[src]
impl Hash for Attribute
[src]
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Attribute> for Attribute
[src]
impl StructuralEq for Attribute
[src]
impl StructuralPartialEq for Attribute
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,