Enum ra_ap_ide::HlOperator
source · pub enum HlOperator {
Bitwise,
Arithmetic,
Logical,
Comparison,
Other,
}
Variants§
Bitwise
|, &, !, ^, |=, &=, ^=
Arithmetic
+, -, *, /, +=, -=, *=, /=
Logical
&&, ||, !
Comparison
, <, ==, >=, <=, !=
Other
Trait Implementations§
source§impl Clone for HlOperator
impl Clone for HlOperator
source§fn clone(&self) -> HlOperator
fn clone(&self) -> HlOperator
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 HlOperator
impl Debug for HlOperator
source§impl From<HlOperator> for Highlight
impl From<HlOperator> for Highlight
source§fn from(op: HlOperator) -> Highlight
fn from(op: HlOperator) -> Highlight
Converts to this type from the input type.
source§impl Hash for HlOperator
impl Hash for HlOperator
source§impl Ord for HlOperator
impl Ord for HlOperator
source§fn cmp(&self, other: &HlOperator) -> Ordering
fn cmp(&self, other: &HlOperator) -> 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 HlOperator
impl PartialEq for HlOperator
source§fn eq(&self, other: &HlOperator) -> bool
fn eq(&self, other: &HlOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HlOperator
impl PartialOrd for HlOperator
source§fn partial_cmp(&self, other: &HlOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &HlOperator) -> 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 HlOperator
impl Eq for HlOperator
impl StructuralPartialEq for HlOperator
Auto Trait Implementations§
impl Freeze for HlOperator
impl RefUnwindSafe for HlOperator
impl Send for HlOperator
impl Sync for HlOperator
impl Unpin for HlOperator
impl UnwindSafe for HlOperator
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> Cast for T
impl<T> Cast for T
source§fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
fn cast<U>(self, interner: <U as HasInterner>::Interner) -> Uwhere
Self: CastTo<U>,
U: HasInterner,
Cast a value to type
U
using CastTo
.source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.