Struct pep508_rs::MarkerExpression
source · pub struct MarkerExpression {
pub l_value: MarkerValue,
pub operator: MarkerOperator,
pub r_value: MarkerValue,
}
Expand description
Represents one clause such as python_version > "3.8"
in the form
<a name from the PEP508 list | a string> <an operator> <a name from the PEP508 list | a string>
Fields§
§l_value: MarkerValue
A name from the PEP508 list or a string
operator: MarkerOperator
an operator, such as >=
or not in
r_value: MarkerValue
A name from the PEP508 list or a string
Trait Implementations§
source§impl Clone for MarkerExpression
impl Clone for MarkerExpression
source§fn clone(&self) -> MarkerExpression
fn clone(&self) -> MarkerExpression
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 MarkerExpression
impl Debug for MarkerExpression
source§impl Display for MarkerExpression
impl Display for MarkerExpression
source§impl FromStr for MarkerExpression
impl FromStr for MarkerExpression
source§impl Hash for MarkerExpression
impl Hash for MarkerExpression
source§impl PartialEq for MarkerExpression
impl PartialEq for MarkerExpression
source§fn eq(&self, other: &MarkerExpression) -> bool
fn eq(&self, other: &MarkerExpression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for MarkerExpression
impl StructuralPartialEq for MarkerExpression
Auto Trait Implementations§
impl RefUnwindSafe for MarkerExpression
impl Send for MarkerExpression
impl Sync for MarkerExpression
impl Unpin for MarkerExpression
impl UnwindSafe for MarkerExpression
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