pub enum CompareOp {
Equal,
NotEqual,
Less,
LessOrEqual,
Greater,
GreaterOrEqual,
}Expand description
Comparison operators usable in match criteria.
Variants§
Equal
== / eq
NotEqual
!= / neq
Less
< / lt
LessOrEqual
<= / leq
Greater
> / gt
GreaterOrEqual
>= / geq
Implementations§
Source§impl CompareOp
impl CompareOp
Sourcepub fn parse(text: &str) -> Option<Self>
pub fn parse(text: &str) -> Option<Self>
Parses the XML spelling of an operator.
XTCE mandates entity-escaped forms (>), but shipped databases also use the
bash-style words, and an XML parser hands back the unescaped character. All three
spellings are accepted, matching the reference implementation.
Trait Implementations§
impl Copy for CompareOp
impl Eq for CompareOp
impl StructuralPartialEq for CompareOp
Auto Trait Implementations§
impl Forget for CompareOp
impl Freeze for CompareOp
impl Move for CompareOp
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnsafeUnpin for CompareOp
impl UnwindSafe for CompareOp
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