[][src]Struct tinf::cap::Number

pub struct Number(_);

Numeric capability names.

The names are used as indices into a Desc.

NameShort name
columnscols
init_tabsit
lineslines
lines_of_memorylm
magic_cookie_glitchxmc
padding_baud_ratepb
virtual_terminalvt
width_status_linewsl
num_labelsnlab
label_heightlh
label_widthlw
max_attributesma
maximum_windowswnum
max_colorscolors
max_pairspairs
no_color_videoncv
buffer_capacitybufsz
dot_vert_spacingspinv
dot_horz_spacingspinh
max_micro_addressmaddr
max_micro_jumpmjump
micro_col_sizemcs
micro_line_sizemls
number_of_pinsnpins
output_res_charorc
output_res_lineorl
output_res_horz_inchorhi
output_res_vert_inchorvi
print_ratecps
wide_char_sizewidcs
buttonsbtns
bit_image_entwiningbitwin
bit_image_typebitype
magic_cookie_glitch_ulUTug
carriage_return_delayOTdC
new_line_delayOTdN
backspace_delayOTdB
horizontal_tab_delayOTdT
number_of_function_keysOTkn

Implementations

impl Number[src]

pub fn named<T: Borrow<str>>(name: T) -> Option<Number>[src]

The Number capabilitiy name corresponding to the string name.

pub fn iter() -> NumIter[src]

An iterator over the predefined numeric capabilities.

pub fn short_name(&self) -> &'static str[src]

The short name of the capability.

pub fn long_name(&self) -> &'static str[src]

The long name of the capability.

Trait Implementations

impl Clone for Number[src]

impl Copy for Number[src]

impl Debug for Number[src]

impl Index<Number> for Desc[src]

type Output = u16

The returned type after indexing.

fn index(&self, idx: Number) -> &u16[src]

The value of the numeric capability named by index.

Auto Trait Implementations

impl RefUnwindSafe for Number

impl Send for Number

impl Sync for Number

impl Unpin for Number

impl UnwindSafe for Number

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.