Enum ncursesw::AttributesColorPairSet
source · [−]pub enum AttributesColorPairSet {
Normal(AttributesColorPair),
Extend(AttributesColorPair),
}
Expand description
Normal and extended attributes and color pair returned by ncurses functions.
Variants
Normal(AttributesColorPair)
normal
attributes and color pair.
Extend(AttributesColorPair)
extended attributes and color pair.
Implementations
sourceimpl AttributesColorPairSet
impl AttributesColorPairSet
sourcepub fn unwrap_as_normal(&self) -> AttributesColorPair
pub fn unwrap_as_normal(&self) -> AttributesColorPair
Unwrap self
as a normal::AttributesColorPair
or panic
.
sourcepub fn unwrap_as_extend(&self) -> AttributesColorPair
pub fn unwrap_as_extend(&self) -> AttributesColorPair
Unwrap self
as a extend::AttributesColorPair
or panic
.
Trait Implementations
sourceimpl Clone for AttributesColorPairSet
impl Clone for AttributesColorPairSet
sourcefn clone(&self) -> AttributesColorPairSet
fn clone(&self) -> AttributesColorPairSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttributesColorPairSet
impl Debug for AttributesColorPairSet
sourceimpl Hash for AttributesColorPairSet
impl Hash for AttributesColorPairSet
sourceimpl PartialEq<AttributesColorPairSet> for AttributesColorPairSet
impl PartialEq<AttributesColorPairSet> for AttributesColorPairSet
sourcefn eq(&self, other: &AttributesColorPairSet) -> bool
fn eq(&self, other: &AttributesColorPairSet) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttributesColorPairSet) -> bool
fn ne(&self, other: &AttributesColorPairSet) -> bool
This method tests for !=
.
impl Copy for AttributesColorPairSet
impl Eq for AttributesColorPairSet
impl StructuralEq for AttributesColorPairSet
impl StructuralPartialEq for AttributesColorPairSet
Auto Trait Implementations
impl RefUnwindSafe for AttributesColorPairSet
impl !Send for AttributesColorPairSet
impl !Sync for AttributesColorPairSet
impl Unpin for AttributesColorPairSet
impl UnwindSafe for AttributesColorPairSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more