Struct libnotcurses_sys::c_api::ffi::nccapabilities
source · [−]#[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
sourceimpl nccapabilities
impl nccapabilities
Trait Implementations
sourceimpl Clone for nccapabilities
impl Clone for nccapabilities
sourcefn clone(&self) -> nccapabilities
fn clone(&self) -> nccapabilities
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 nccapabilities
impl Debug for nccapabilities
sourceimpl Default for nccapabilities
impl Default for nccapabilities
sourcefn default() -> nccapabilities
fn default() -> nccapabilities
Returns the “default value” for a type. Read more
sourceimpl Hash for nccapabilities
impl Hash for nccapabilities
sourceimpl Ord for nccapabilities
impl Ord for nccapabilities
sourceimpl PartialEq<nccapabilities> for nccapabilities
impl PartialEq<nccapabilities> for nccapabilities
sourcefn eq(&self, other: &nccapabilities) -> bool
fn eq(&self, other: &nccapabilities) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &nccapabilities) -> bool
fn ne(&self, other: &nccapabilities) -> bool
This method tests for !=.
sourceimpl PartialOrd<nccapabilities> for nccapabilities
impl PartialOrd<nccapabilities> for nccapabilities
sourcefn partial_cmp(&self, other: &nccapabilities) -> Option<Ordering>
fn partial_cmp(&self, other: &nccapabilities) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Copy for nccapabilities
impl Eq for nccapabilities
impl StructuralEq for nccapabilities
impl StructuralPartialEq for nccapabilities
Auto Trait Implementations
impl RefUnwindSafe for nccapabilities
impl Send for nccapabilities
impl Sync for nccapabilities
impl Unpin for nccapabilities
impl UnwindSafe for nccapabilities
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more