#[non_exhaustive]pub enum ClickTextError {
NotFound {
needle: String,
},
}Expand description
Error returned by TestHarness::click_text when needle doesn’t appear in the
current view.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotFound
needle did not appear anywhere in TestHarness::view at the time of the call.
Trait Implementations§
Source§impl Clone for ClickTextError
impl Clone for ClickTextError
Source§fn clone(&self) -> ClickTextError
fn clone(&self) -> ClickTextError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClickTextError
impl Debug for ClickTextError
Source§impl Display for ClickTextError
impl Display for ClickTextError
impl Eq for ClickTextError
Source§impl Error for ClickTextError
impl Error for ClickTextError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for ClickTextError
impl PartialEq for ClickTextError
Source§fn eq(&self, other: &ClickTextError) -> bool
fn eq(&self, other: &ClickTextError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClickTextError
Auto Trait Implementations§
impl Freeze for ClickTextError
impl RefUnwindSafe for ClickTextError
impl Send for ClickTextError
impl Sync for ClickTextError
impl Unpin for ClickTextError
impl UnsafeUnpin for ClickTextError
impl UnwindSafe for ClickTextError
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