pub enum PytestNameError {
Empty,
Identifier(PythonIdentifierError),
UnknownLabel,
}Expand description
Error returned when pytest metadata names are invalid.
Variants§
Trait Implementations§
Source§impl Clone for PytestNameError
impl Clone for PytestNameError
Source§fn clone(&self) -> PytestNameError
fn clone(&self) -> PytestNameError
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 PytestNameError
impl Debug for PytestNameError
Source§impl Display for PytestNameError
impl Display for PytestNameError
Source§impl Error for PytestNameError
impl Error for PytestNameError
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 PytestNameError
impl PartialEq for PytestNameError
Source§fn eq(&self, other: &PytestNameError) -> bool
fn eq(&self, other: &PytestNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PytestNameError
impl Eq for PytestNameError
impl StructuralPartialEq for PytestNameError
Auto Trait Implementations§
impl Freeze for PytestNameError
impl RefUnwindSafe for PytestNameError
impl Send for PytestNameError
impl Sync for PytestNameError
impl Unpin for PytestNameError
impl UnsafeUnpin for PytestNameError
impl UnwindSafe for PytestNameError
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