pub trait Explain {
// Required methods
fn short_name(&self) -> Option<&'static str>;
fn long_name(&self) -> &'static str;
fn short_description(&self) -> String;
fn long_description(&self) -> String;
}
Expand description
Explanation of an ansi-control-code.
Required Methods§
Sourcefn short_name(&self) -> Option<&'static str>
fn short_name(&self) -> Option<&'static str>
Returns the short name (abbreviation) of this control function, e.g. CR
, LF
.
An abbreviated name is available for all ansi-escape-codes, except for those in the private use area.
Sourcefn long_name(&self) -> &'static str
fn long_name(&self) -> &'static str
Returns the name of this control function, e.g. Carriage Return
, Line Feed
.
Sourcefn short_description(&self) -> String
fn short_description(&self) -> String
Returns the short description of what this function does.
Sourcefn long_description(&self) -> String
fn long_description(&self) -> String
Returns a long description of what this function does.
Not all control functions have a long description, in which case this will return the
same as short_description()
.