Struct ncursesw::ComplexChar
source · [−]pub struct ComplexChar { /* private fields */ }
Expand description
Complex character (wide character and rendition).
Implementations
sourceimpl ComplexChar
impl ComplexChar
pub fn from_wide_char<A, P, T>(
ch: WideChar,
attrs: &A,
color_pair: &P
) -> Result<Self, NCurseswError> where
A: AttributesType<T>,
P: ColorPairType<T>,
T: ColorAttributeTypes,
pub fn from_char<A, P, T>(
ch: char,
attrs: &A,
color_pair: &P
) -> Result<Self, NCurseswError> where
A: AttributesType<T>,
P: ColorPairType<T>,
T: ColorAttributeTypes,
pub fn as_wide_char(self) -> Result<WideChar, NCurseswError>
Trait Implementations
sourceimpl Clone for ComplexChar
impl Clone for ComplexChar
sourcefn clone(&self) -> ComplexChar
fn clone(&self) -> ComplexChar
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 ComplexChar
impl Debug for ComplexChar
sourceimpl Hash for ComplexChar
impl Hash for ComplexChar
sourceimpl PartialEq<ComplexChar> for ComplexChar
impl PartialEq<ComplexChar> for ComplexChar
sourcefn eq(&self, other: &ComplexChar) -> bool
fn eq(&self, other: &ComplexChar) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ComplexChar) -> bool
fn ne(&self, other: &ComplexChar) -> bool
This method tests for !=
.
impl Copy for ComplexChar
impl Eq for ComplexChar
impl StructuralEq for ComplexChar
impl StructuralPartialEq for ComplexChar
Auto Trait Implementations
impl RefUnwindSafe for ComplexChar
impl Send for ComplexChar
impl Sync for ComplexChar
impl Unpin for ComplexChar
impl UnwindSafe for ComplexChar
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