pub enum TerminalAssertion {
Contains(String),
NotContains(String),
ColorAt {
x: u16,
y: u16,
expected: Color,
},
CharAt {
x: u16,
y: u16,
expected: char,
},
RegionEquals {
x: u16,
y: u16,
width: u16,
height: u16,
expected: String,
},
}Expand description
Terminal assertion types.
Variants§
Contains(String)
Assert text is present.
NotContains(String)
Assert text is not present.
ColorAt
Assert color at position.
CharAt
Assert character at position.
RegionEquals
Assert region matches text.
Implementations§
Trait Implementations§
Source§impl Clone for TerminalAssertion
impl Clone for TerminalAssertion
Source§fn clone(&self) -> TerminalAssertion
fn clone(&self) -> TerminalAssertion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TerminalAssertion
impl RefUnwindSafe for TerminalAssertion
impl Send for TerminalAssertion
impl Sync for TerminalAssertion
impl Unpin for TerminalAssertion
impl UnsafeUnpin for TerminalAssertion
impl UnwindSafe for TerminalAssertion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more