#[non_exhaustive]pub enum OperatorKind {
Show 37 variants
Assign,
Concat,
Field,
Clone,
Debug,
Display,
PartialEq,
Default,
PartialOrd,
Ord,
Hash,
Invocation,
Binding,
Add,
AddAssign,
Sub,
SubAssign,
Mul,
MulAssign,
Div,
DivAssign,
And,
Or,
Not,
Neg,
BitAnd,
BitAndAssign,
BitOr,
BitOrAssign,
BitXor,
BitXorAssign,
Shl,
ShlAssign,
Shr,
ShrAssign,
Rem,
RemAssign,
}Expand description
A type of the script operator.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Assign
An assignment operator: lhs = rhs.
Concat
An array constructor: [a, b, c].
Field
A field access operator: foo.bar.
Clone
A cloning operator: *foo.
Debug
A Debug formatting operator.
Display
A Display formatting operator.
PartialEq
An equality operator: lhs == rhs.
Default
An object’s default constructor.
PartialOrd
A partial ordering operator: lhs >= rhs, lhs < rhs, etc.
Ord
A full ordering operator: lhs >= rhs, lhs < rhs, etc.
Hash
A data Hash operator.
Invocation
An invocation operator: foo(arg1, arg2, arg3).
Binding
A context binding operator.
Add
An addition operator: lhs + rhs.
AddAssign
An addition and assignment operator: lhs += rhs.
Sub
An subtraction operator: lhs - rhs.
SubAssign
An subtraction and assignment operator: lhs -= rhs.
Mul
A multiplication operator: lhs * rhs.
MulAssign
A multiplication and assignment operator: lhs *= rhs.
Div
A division operator: lhs / rhs.
DivAssign
A division and assignment operator: lhs /= rhs.
And
A logical conjunction operator: lhs && rhs.
Or
A logical disjunction operator: lhs || rhs.
Not
A logical negation operator: !foo.
Neg
A numeric negation operator: -foo.
BitAnd
A bitwise conjunction operator: lhs & rhs.
BitAndAssign
A bitwise conjunction and assignment operator: lhs &= rhs.
BitOr
A bitwise disjunction operator: lhs | rhs.
BitOrAssign
A bitwise disjunction and assignment operator: lhs |= rhs.
BitXor
A bitwise exclusive disjunction operator: lhs ^ rhs.
BitXorAssign
A bitwise exclusive disjunction and assignment operator: lhs ^= rhs.
Shl
A bitwise left shift operator: lhs << rhs.
ShlAssign
A bitwise left shift and assignment operator: lhs <<= rhs.
Shr
A bitwise right shift operator: lhs >> rhs.
ShrAssign
A bitwise right shift and assignment operator: lhs >>= rhs.
Rem
A reminder of division operator: lhs % rhs.
RemAssign
A reminder of division and assignment operator: lhs %= rhs.
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
Source§fn clone(&self) -> OperatorKind
fn clone(&self) -> OperatorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OperatorKind
Source§impl Debug for OperatorKind
impl Debug for OperatorKind
Source§impl Display for OperatorKind
impl Display for OperatorKind
impl Eq for OperatorKind
Source§impl Hash for OperatorKind
impl Hash for OperatorKind
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
Source§fn eq(&self, other: &OperatorKind) -> bool
fn eq(&self, other: &OperatorKind) -> bool
self and other values to be equal, and is used by ==.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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more