Trait terminfo::capability::Capability [] [src]

pub trait Capability<'a>: Sized {
    fn name() -> &'static str;
    fn from(value: Option<&'a Value>) -> Option<Self>;
    fn into(self) -> Option<Value>;
}

A trait for any object that will represent a terminal capability.

Required Methods

Returns the name of the capability in its long form.

Parse the capability from its raw value.

Convert the capability into its raw value.

Implementors