[][src]Struct ncursesw::ChtypeChar

pub struct ChtypeChar { /* fields omitted */ }

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.

impl BitOr<Attributes> for ChtypeChar[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<Attribute> for ChtypeChar[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitXor<Attributes> for ChtypeChar[src]

type Output = Self

The resulting type after applying the ^ operator.

impl Clone for ChtypeChar[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]

impl Into<u32> for ChtypeChar[src]

impl PartialEq<ChtypeChar> for ChtypeChar[src]

impl StructuralEq for ChtypeChar[src]

impl StructuralPartialEq for ChtypeChar[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.