#[repr(C)]pub struct nccapabilities {
pub colors: c_uint,
pub utf8: bool,
pub rgb: bool,
pub can_change_colors: bool,
pub halfblocks: bool,
pub quadrants: bool,
pub sextants: bool,
pub braille: bool,
}Expand description
Capabilities, derived from terminfo, environment variables, and queries
Fields§
§colors: c_uintsize of palette for indexed colors
utf8: boolare we using utf-8 encoding? from nl_langinfo(3)
rgb: bool24bit color? COLORTERM/heuristics/terminfo ‘rgb’
can_change_colors: boolcan we change the palette? terminfo ‘ccc’
halfblocks: boolwe assume halfblocks, but some are known to lack them
quadrants: booldo we have (good, vetted) Unicode 1 quadrant support?
sextants: booldo we have (good, vetted) Unicode 13 sextant support?
braille: booldo we have Braille support? (linux console does not)
Implementations§
Trait Implementations§
Source§impl Clone for nccapabilities
impl Clone for nccapabilities
Source§fn clone(&self) -> nccapabilities
fn clone(&self) -> nccapabilities
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 nccapabilities
impl Debug for nccapabilities
Source§impl Default for nccapabilities
impl Default for nccapabilities
Source§fn default() -> nccapabilities
fn default() -> nccapabilities
Returns the “default value” for a type. Read more
Source§impl Hash for nccapabilities
impl Hash for nccapabilities
Source§impl Ord for nccapabilities
impl Ord for nccapabilities
Source§fn cmp(&self, other: &nccapabilities) -> Ordering
fn cmp(&self, other: &nccapabilities) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for nccapabilities
impl PartialEq for nccapabilities
Source§impl PartialOrd for nccapabilities
impl PartialOrd for nccapabilities
impl Copy for nccapabilities
impl Eq for nccapabilities
impl StructuralPartialEq for nccapabilities
Auto Trait Implementations§
impl Freeze for nccapabilities
impl RefUnwindSafe for nccapabilities
impl Send for nccapabilities
impl Sync for nccapabilities
impl Unpin for nccapabilities
impl UnwindSafe for nccapabilities
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