[−][src]Struct ncursesw::ChtypeChar
Ascii character and rendition.
Methods
impl ChtypeChar
[src]
pub fn new(ch: AsciiChar) -> Self
[src]
pub fn from_chtype(raw: chtype) -> Self
[src]
pub fn as_byte(self) -> u8
[src]
Converts a Chtype character into a u8
.
pub fn as_char(self) -> char
[src]
Converts a Chtype character into a char
.
pub fn as_ascii_char(self) -> AsciiChar
[src]
Converts a Chtype character into a AsciiChar
.
pub fn is_alphabetic(self) -> bool
[src]
Check if the character is a letter (a-z, A-Z).
pub fn is_digit(self) -> bool
[src]
Check if the character is a number (0-9).
pub fn is_alphanumeric(self) -> bool
[src]
Check if the character is a letter or number.
pub fn is_blank(self) -> bool
[src]
Check if the character is a space or horizontal tab.
pub fn is_whitespace(self) -> bool
[src]
Check if the character is a ' ', '\t', '\n' or '\r'.
pub fn is_control(self) -> bool
[src]
Check if the character is a control character.
pub fn get_attributes(self) -> Attributes
[src]
Get the attributes of the Chtype character.
Trait Implementations
impl BitOr<Attribute> for ChtypeChar
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Attribute) -> Self::Output
[src]
impl BitOr<Attributes> for ChtypeChar
[src]
type Output = Self
The resulting type after applying the |
operator.
fn bitor(self, rhs: Attributes) -> Self::Output
[src]
impl BitXor<Attribute> for ChtypeChar
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Attribute) -> Self::Output
[src]
impl BitXor<Attributes> for ChtypeChar
[src]
type Output = Self
The resulting type after applying the ^
operator.
fn bitxor(self, rhs: Attributes) -> Self::Output
[src]
impl Clone for ChtypeChar
[src]
fn clone(&self) -> ChtypeChar
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ChtypeChar
[src]
impl Debug for ChtypeChar
[src]
impl Eq for ChtypeChar
[src]
impl From<u32> for ChtypeChar
[src]
impl Hash for ChtypeChar
[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 Into<u32> for ChtypeChar
[src]
impl PartialEq<ChtypeChar> for ChtypeChar
[src]
fn eq(&self, other: &ChtypeChar) -> bool
[src]
fn ne(&self, other: &ChtypeChar) -> bool
[src]
impl StructuralEq for ChtypeChar
[src]
impl StructuralPartialEq for ChtypeChar
[src]
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
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>,