Enum debris_hir::hir_nodes::HirPrefixOperator
source · pub enum HirPrefixOperator {
Minus,
Not,
}
Expand description
Any prefix operator
A prefix operator operates on a single value and is written before it
Variants§
Implementations§
Trait Implementations§
source§impl Clone for HirPrefixOperator
impl Clone for HirPrefixOperator
source§fn clone(&self) -> HirPrefixOperator
fn clone(&self) -> HirPrefixOperator
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 HirPrefixOperator
impl Debug for HirPrefixOperator
source§impl PartialEq for HirPrefixOperator
impl PartialEq for HirPrefixOperator
source§fn eq(&self, other: &HirPrefixOperator) -> bool
fn eq(&self, other: &HirPrefixOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HirPrefixOperator
impl Eq for HirPrefixOperator
impl StructuralEq for HirPrefixOperator
impl StructuralPartialEq for HirPrefixOperator
Auto Trait Implementations§
impl RefUnwindSafe for HirPrefixOperator
impl Send for HirPrefixOperator
impl Sync for HirPrefixOperator
impl Unpin for HirPrefixOperator
impl UnwindSafe for HirPrefixOperator
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.