pub struct DummyUI {}
Expand description
Dummy UI for testing Returns Ok on any operation (with empty data if required) and supports no-op locking and unlocking.
Trait Implementations§
Source§impl UI for DummyUI
impl UI for DummyUI
Source§fn print_message(&mut self, _data: &str) -> Result<()>
fn print_message(&mut self, _data: &str) -> Result<()>
A basic print for errors and other information messages
Source§fn print_command_documentation(&mut self) -> Result<()>
fn print_command_documentation(&mut self) -> Result<()>
Print commands documentation Read more
Source§fn get_command(&mut self, _ed: &Ed<'_>, _prefix: Option<char>) -> Result<String>
fn get_command(&mut self, _ed: &Ed<'_>, _prefix: Option<char>) -> Result<String>
Get a command for parsing and execution Read more
Source§fn get_input(&mut self, _ed: &Ed<'_>, _terminator: char) -> Result<Vec<String>>
fn get_input(&mut self, _ed: &Ed<'_>, _terminator: char) -> Result<Vec<String>>
Get input lines until given character is entered alone on a line Read more
Source§fn print_selection(
&mut self,
_ed: &Ed<'_>,
_selection: (usize, usize),
_numbered: bool,
_literal: bool,
) -> Result<()>
fn print_selection( &mut self, _ed: &Ed<'_>, _selection: (usize, usize), _numbered: bool, _literal: bool, ) -> Result<()>
Print the given selection with the given options Read more
Auto Trait Implementations§
impl Freeze for DummyUI
impl RefUnwindSafe for DummyUI
impl Send for DummyUI
impl Sync for DummyUI
impl Unpin for DummyUI
impl UnwindSafe for DummyUI
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more