Enum solang_parser::pt::VersionComparator
source · pub enum VersionComparator {
Plain {
loc: Loc,
version: Vec<String>,
},
Operator {
loc: Loc,
op: VersionOp,
version: Vec<String>,
},
Or {
loc: Loc,
left: Box<VersionComparator>,
right: Box<VersionComparator>,
},
Range {
loc: Loc,
from: Vec<String>,
to: Vec<String>,
},
}
Expand description
A version
list
Variants§
Plain
0.8.22
Fields
Operator
=0.5.16
Fields
Or
foo || bar
Range
0.7.0 - 0.8.22
Trait Implementations§
source§impl Clone for VersionComparator
impl Clone for VersionComparator
source§fn clone(&self) -> VersionComparator
fn clone(&self) -> VersionComparator
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 VersionComparator
impl Debug for VersionComparator
source§impl Display for VersionComparator
impl Display for VersionComparator
source§impl PartialEq for VersionComparator
impl PartialEq for VersionComparator
source§fn eq(&self, other: &VersionComparator) -> bool
fn eq(&self, other: &VersionComparator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for VersionComparator
impl StructuralPartialEq for VersionComparator
Auto Trait Implementations§
impl Freeze for VersionComparator
impl RefUnwindSafe for VersionComparator
impl Send for VersionComparator
impl Sync for VersionComparator
impl Unpin for VersionComparator
impl UnwindSafe for VersionComparator
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more