Enum endbasic_std::testutils::CapturedOut
source · [−]pub enum CapturedOut {
Show 16 variants
Clear(ClearType),
Color(Option<u8>, Option<u8>),
EnterAlt,
HideCursor,
LeaveAlt,
Locate(CharsXY),
MoveWithinLine(i16),
Print(String),
ShowCursor,
Write(String),
DrawLine(PixelsXY, PixelsXY),
DrawPixel(PixelsXY),
DrawRect(PixelsXY, PixelsXY),
DrawRectFilled(PixelsXY, PixelsXY),
SyncNow,
SetSync(bool),
}Expand description
A captured command or messages sent to the mock console.
Variants
Clear(ClearType)
Represents a call to Console::clear.
Color(Option<u8>, Option<u8>)
Represents a call to Console::color.
EnterAlt
Represents a call to Console::enter_alt.
HideCursor
Represents a call to Console::hide_cursor.
LeaveAlt
Represents a call to Console::leave_alt.
Locate(CharsXY)
Represents a call to Console::locate.
MoveWithinLine(i16)
Represents a call to Console::move_within_line.
Print(String)
Represents a call to Console::print.
ShowCursor
Represents a call to Console::show_cursor.
Write(String)
Represents a call to Console::write.
DrawLine(PixelsXY, PixelsXY)
Represents a call to Console::draw_line.
DrawPixel(PixelsXY)
Represents a call to Console::draw_pixel.
DrawRect(PixelsXY, PixelsXY)
Represents a call to Console::draw_rect.
DrawRectFilled(PixelsXY, PixelsXY)
Represents a call to Console::draw_rect_filled.
SyncNow
Represents a call to Console::sync_now.
SetSync(bool)
Represents a call to Console::set_sync.
Trait Implementations
sourceimpl Clone for CapturedOut
impl Clone for CapturedOut
sourcefn clone(&self) -> CapturedOut
fn clone(&self) -> CapturedOut
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CapturedOut
impl Debug for CapturedOut
sourceimpl PartialEq<CapturedOut> for CapturedOut
impl PartialEq<CapturedOut> for CapturedOut
sourcefn eq(&self, other: &CapturedOut) -> bool
fn eq(&self, other: &CapturedOut) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CapturedOut) -> bool
fn ne(&self, other: &CapturedOut) -> bool
This method tests for !=.
impl Eq for CapturedOut
impl StructuralEq for CapturedOut
impl StructuralPartialEq for CapturedOut
Auto Trait Implementations
impl RefUnwindSafe for CapturedOut
impl Send for CapturedOut
impl Sync for CapturedOut
impl Unpin for CapturedOut
impl UnwindSafe for CapturedOut
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more