[][src]Enum dwfv::tui::instr::TuiInstr

pub enum TuiInstr {
    Signal(String),
    Search(String),
    Error(StringString),
}

TUI Instruction

Variants

Signal(String)

Tell the TUI to display a signal.

Search(String)

Tell the TUI to display the result of a search expression.

Error(StringString)

Tell the TUI to display an error message.

Implementations

impl TuiInstr[src]

pub fn height(&self) -> usize[src]

pub fn total_height(instrs: &[TuiInstr]) -> usize[src]

pub fn parse<I: BufRead>(input: I) -> Vec<TuiInstr>[src]

pub fn format_instrs<O: Write>(instrs: &[TuiInstr], output: &mut O)[src]

Trait Implementations

impl Clone for TuiInstr[src]

impl Display for TuiInstr[src]

impl PartialEq<TuiInstr> for TuiInstr[src]

Auto Trait Implementations

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> ToString for T where
    T: Display + ?Sized
[src]

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.