Enum pep508_rs::MarkerWarningKind
source · pub enum MarkerWarningKind {
DeprecatedMarkerName,
ExtraInvalidComparison,
LexicographicComparison,
MarkerMarkerComparison,
Pep440Error,
StringStringComparison,
}
Expand description
Ways in which marker evaluation can fail
Variants§
DeprecatedMarkerName
Using an old name from PEP 345 instead of the modern equivalent https://peps.python.org/pep-0345/#environment-markers
ExtraInvalidComparison
Doing an operation other than ==
and !=
on a quoted string with extra
, such as
extra > "perf"
or extra == os_name
LexicographicComparison
Comparing a string valued marker and a string lexicographically, such as "3.9" > "3.10"
MarkerMarkerComparison
Comparing two markers, such as os_name != sys_implementation
Pep440Error
Failed to parse a PEP 440 version or version specifier, e.g. >=1<2
StringStringComparison
Comparing two strings, such as "3.9" > "3.10"
Trait Implementations§
source§impl Clone for MarkerWarningKind
impl Clone for MarkerWarningKind
source§fn clone(&self) -> MarkerWarningKind
fn clone(&self) -> MarkerWarningKind
Returns a copy 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 moresource§impl Debug for MarkerWarningKind
impl Debug for MarkerWarningKind
source§impl Hash for MarkerWarningKind
impl Hash for MarkerWarningKind
source§impl Ord for MarkerWarningKind
impl Ord for MarkerWarningKind
source§fn cmp(&self, other: &MarkerWarningKind) -> Ordering
fn cmp(&self, other: &MarkerWarningKind) -> Ordering
1.21.0 · 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 MarkerWarningKind
impl PartialEq for MarkerWarningKind
source§fn eq(&self, other: &MarkerWarningKind) -> bool
fn eq(&self, other: &MarkerWarningKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MarkerWarningKind
impl PartialOrd for MarkerWarningKind
source§fn partial_cmp(&self, other: &MarkerWarningKind) -> Option<Ordering>
fn partial_cmp(&self, other: &MarkerWarningKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for MarkerWarningKind
impl Eq for MarkerWarningKind
impl StructuralPartialEq for MarkerWarningKind
Auto Trait Implementations§
impl RefUnwindSafe for MarkerWarningKind
impl Send for MarkerWarningKind
impl Sync for MarkerWarningKind
impl Unpin for MarkerWarningKind
impl UnwindSafe for MarkerWarningKind
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