Struct endbasic_std::testutils::MockConsole[][src]

pub struct MockConsole { /* fields omitted */ }

A console that supplies golden input and captures all output.

Implementations

impl MockConsole[src]

pub fn add_input_chars(&mut self, s: &str)[src]

Adds a bunch of characters as golden input keys.

Note that some escape characters within s are interpreted and added as their corresponding Keys for simplicity.

pub fn add_input_keys(&mut self, keys: &[Key])[src]

Adds a bunch of keys as golden input.

pub fn captured_out(&self) -> &[CapturedOut][src]

Obtains a reference to the captured output.

pub fn set_size(&mut self, size: Position)[src]

Sets the size of the mock console.

Trait Implementations

impl Console for MockConsole[src]

impl Default for MockConsole[src]

impl Drop for MockConsole[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, 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,