Struct ncursesw::ChtypeChar
source · [−]pub struct ChtypeChar { /* private fields */ }
Expand description
Ascii character and rendition.
Implementations
sourceimpl ChtypeChar
impl ChtypeChar
pub fn new(ch: AsciiChar) -> Self
pub fn from_chtype(raw: chtype) -> Self
sourcepub fn as_ascii_char(self) -> AsciiChar
pub fn as_ascii_char(self) -> AsciiChar
Converts a Chtype character into a AsciiChar
.
sourcepub fn is_alphabetic(self) -> bool
pub fn is_alphabetic(self) -> bool
Check if the character is a letter (a-z, A-Z).
sourcepub fn is_alphanumeric(self) -> bool
pub fn is_alphanumeric(self) -> bool
Check if the character is a letter or number.
sourcepub fn is_whitespace(self) -> bool
pub fn is_whitespace(self) -> bool
Check if the character is a ’ ’, ‘\t’, ‘\n’ or ‘\r’.
sourcepub fn is_control(self) -> bool
pub fn is_control(self) -> bool
Check if the character is a control character.
sourcepub fn get_attributes(self) -> Attributes
pub fn get_attributes(self) -> Attributes
Get the attributes of the Chtype character.
Trait Implementations
sourceimpl BitOr<Attribute> for ChtypeChar
impl BitOr<Attribute> for ChtypeChar
sourceimpl BitOr<Attributes> for ChtypeChar
impl BitOr<Attributes> for ChtypeChar
sourceimpl BitXor<Attribute> for ChtypeChar
impl BitXor<Attribute> for ChtypeChar
sourceimpl BitXor<Attributes> for ChtypeChar
impl BitXor<Attributes> for ChtypeChar
sourceimpl Clone for ChtypeChar
impl Clone for ChtypeChar
sourcefn clone(&self) -> ChtypeChar
fn clone(&self) -> ChtypeChar
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 ChtypeChar
impl Debug for ChtypeChar
sourceimpl Default for ChtypeChar
impl Default for ChtypeChar
sourcefn default() -> ChtypeChar
fn default() -> ChtypeChar
Returns the “default value” for a type. Read more
sourceimpl Hash for ChtypeChar
impl Hash for ChtypeChar
sourceimpl PartialEq<ChtypeChar> for ChtypeChar
impl PartialEq<ChtypeChar> for ChtypeChar
sourcefn eq(&self, other: &ChtypeChar) -> bool
fn eq(&self, other: &ChtypeChar) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChtypeChar) -> bool
fn ne(&self, other: &ChtypeChar) -> bool
This method tests for !=
.
impl Copy for ChtypeChar
impl Eq for ChtypeChar
impl StructuralEq for ChtypeChar
impl StructuralPartialEq for ChtypeChar
Auto Trait Implementations
impl RefUnwindSafe for ChtypeChar
impl Send for ChtypeChar
impl Sync for ChtypeChar
impl Unpin for ChtypeChar
impl UnwindSafe for ChtypeChar
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more