pub enum Operator {
Equal,
EqualStar,
ExactEqual,
NotEqual,
NotEqualStar,
TildeEqual,
LessThan,
LessThanEqual,
GreaterThan,
GreaterThanEqual,
}
Expand description
One of ~=
==
!=
<=
>=
<
>
===
Variants§
Equal
== 1.2.3
EqualStar
== 1.2.*
ExactEqual
===
(discouraged)
https://peps.python.org/pep-0440/#arbitrary-equality
“Use of this operator is heavily discouraged and tooling MAY display a warning when it is used”
NotEqual
!= 1.2.3
NotEqualStar
!= 1.2.*
TildeEqual
~=
LessThan
<
LessThanEqual
<=
GreaterThan
>
GreaterThanEqual
>=
Trait Implementations§
source§impl PartialEq for Operator
impl PartialEq for Operator
impl Copy for Operator
impl Eq for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnwindSafe for Operator
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