pub struct PytestNodeId(/* private fields */);Expand description
pytest node ID metadata.
Implementations§
Source§impl PytestNodeId
impl PytestNodeId
Sourcepub fn new(input: &str) -> Result<Self, PytestNameError>
pub fn new(input: &str) -> Result<Self, PytestNameError>
Creates pytest node ID metadata.
§Errors
Returns PytestNameError::Empty when input is empty after trimming.
Sourcepub fn has_scope_separator(&self) -> bool
pub fn has_scope_separator(&self) -> bool
Returns whether the node ID contains a pytest :: separator.
Trait Implementations§
Source§impl Clone for PytestNodeId
impl Clone for PytestNodeId
Source§fn clone(&self) -> PytestNodeId
fn clone(&self) -> PytestNodeId
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 PytestNodeId
impl Debug for PytestNodeId
Source§impl Display for PytestNodeId
impl Display for PytestNodeId
Source§impl FromStr for PytestNodeId
impl FromStr for PytestNodeId
Source§impl Hash for PytestNodeId
impl Hash for PytestNodeId
Source§impl Ord for PytestNodeId
impl Ord for PytestNodeId
Source§fn cmp(&self, other: &PytestNodeId) -> Ordering
fn cmp(&self, other: &PytestNodeId) -> 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 PytestNodeId
impl PartialEq for PytestNodeId
Source§fn eq(&self, other: &PytestNodeId) -> bool
fn eq(&self, other: &PytestNodeId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PytestNodeId
impl PartialOrd for PytestNodeId
Source§impl TryFrom<&str> for PytestNodeId
impl TryFrom<&str> for PytestNodeId
impl Eq for PytestNodeId
impl StructuralPartialEq for PytestNodeId
Auto Trait Implementations§
impl Freeze for PytestNodeId
impl RefUnwindSafe for PytestNodeId
impl Send for PytestNodeId
impl Sync for PytestNodeId
impl Unpin for PytestNodeId
impl UnsafeUnpin for PytestNodeId
impl UnwindSafe for PytestNodeId
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