pub enum OperatorKind {
Binary(BinOp),
Unary(UnOp),
Implicit,
Explicit,
}Expand description
Which operator a declaration is.
Variants§
Binary(BinOp)
Unary(UnOp)
Implicit
A conversion that happens by itself where its target is wanted.
Explicit
A conversion written as a cast ((Energy)n).
Implementations§
Source§impl OperatorKind
impl OperatorKind
Sourcepub fn method_name(self) -> Option<&'static str>
pub fn method_name(self) -> Option<&'static str>
Its method’s name, the CLR’s; none for an operator that can’t be
declared (&&, ||, ??, try, await, in).
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
impl Copy for OperatorKind
Source§impl Debug for OperatorKind
impl Debug for OperatorKind
impl Eq for OperatorKind
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
impl StructuralPartialEq for OperatorKind
Auto Trait Implementations§
impl Freeze for OperatorKind
impl RefUnwindSafe for OperatorKind
impl Send for OperatorKind
impl Sync for OperatorKind
impl Unpin for OperatorKind
impl UnsafeUnpin for OperatorKind
impl UnwindSafe for OperatorKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.