pub struct ChtypeChar { /* private fields */ }Expand description
Ascii character and rendition.
Implementations§
Source§impl ChtypeChar
impl ChtypeChar
pub fn new(ch: AsciiChar) -> ChtypeChar
pub fn from_chtype(raw: u32) -> ChtypeChar
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§
Source§impl BitOr<Attribute> for ChtypeChar
impl BitOr<Attribute> for ChtypeChar
Source§impl BitOr<Attributes> for ChtypeChar
impl BitOr<Attributes> for ChtypeChar
Source§type Output = ChtypeChar
type Output = ChtypeChar
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: Attributes) -> <ChtypeChar as BitOr<Attributes>>::Output
fn bitor(self, rhs: Attributes) -> <ChtypeChar as BitOr<Attributes>>::Output
Performs the
| operation. Read moreSource§impl BitXor<Attribute> for ChtypeChar
impl BitXor<Attribute> for ChtypeChar
Source§impl BitXor<Attributes> for ChtypeChar
impl BitXor<Attributes> for ChtypeChar
Source§type Output = ChtypeChar
type Output = ChtypeChar
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: Attributes) -> <ChtypeChar as BitXor<Attributes>>::Output
fn bitxor(self, rhs: Attributes) -> <ChtypeChar as BitXor<Attributes>>::Output
Performs the
^ operation. Read moreSource§impl Clone for ChtypeChar
impl Clone for ChtypeChar
Source§fn clone(&self) -> ChtypeChar
fn clone(&self) -> ChtypeChar
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ChtypeChar
impl Debug for ChtypeChar
Source§impl Default for ChtypeChar
impl Default for ChtypeChar
Source§fn default() -> ChtypeChar
fn default() -> ChtypeChar
Returns the “default value” for a type. Read more
Source§impl From<u32> for ChtypeChar
impl From<u32> for ChtypeChar
Source§fn from(raw: u32) -> ChtypeChar
fn from(raw: u32) -> ChtypeChar
Converts to this type from the input type.
Source§impl Hash for ChtypeChar
impl Hash for ChtypeChar
Source§impl Into<u32> for ChtypeChar
impl Into<u32> for ChtypeChar
Source§impl PartialEq for ChtypeChar
impl PartialEq for ChtypeChar
impl Copy for ChtypeChar
impl Eq for ChtypeChar
impl StructuralPartialEq for ChtypeChar
Auto Trait Implementations§
impl Freeze for ChtypeChar
impl RefUnwindSafe for ChtypeChar
impl Send for ChtypeChar
impl Sync for ChtypeChar
impl Unpin for ChtypeChar
impl UnwindSafe for ChtypeChar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more