pub struct PytestTestName(/* private fields */);Implementations§
Source§impl PytestTestName
impl PytestTestName
Sourcepub fn new(input: &str) -> Result<Self, PytestNameError>
pub fn new(input: &str) -> Result<Self, PytestNameError>
Creates pytest identifier metadata.
§Errors
Returns PytestNameError::Identifier when input is not an ASCII-safe Python identifier.
Trait Implementations§
Source§impl Clone for PytestTestName
impl Clone for PytestTestName
Source§fn clone(&self) -> PytestTestName
fn clone(&self) -> PytestTestName
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 PytestTestName
impl Debug for PytestTestName
Source§impl Display for PytestTestName
impl Display for PytestTestName
Source§impl FromStr for PytestTestName
impl FromStr for PytestTestName
Source§impl Hash for PytestTestName
impl Hash for PytestTestName
Source§impl Ord for PytestTestName
impl Ord for PytestTestName
Source§fn cmp(&self, other: &PytestTestName) -> Ordering
fn cmp(&self, other: &PytestTestName) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PytestTestName
impl PartialEq for PytestTestName
Source§fn eq(&self, other: &PytestTestName) -> bool
fn eq(&self, other: &PytestTestName) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PytestTestName
impl PartialOrd for PytestTestName
Source§impl TryFrom<&str> for PytestTestName
impl TryFrom<&str> for PytestTestName
impl Eq for PytestTestName
impl StructuralPartialEq for PytestTestName
Auto Trait Implementations§
impl Freeze for PytestTestName
impl RefUnwindSafe for PytestTestName
impl Send for PytestTestName
impl Sync for PytestTestName
impl Unpin for PytestTestName
impl UnsafeUnpin for PytestTestName
impl UnwindSafe for PytestTestName
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