pub enum Operator {
Show 16 variants
Plus,
Minus,
Division,
FloorDivision,
Multiplication,
Modulo,
Exponentiation,
Concatenation,
NotEqual,
And,
Or,
Not,
Intersection,
Union,
Optional,
Length,
}Expand description
A luau operator like + and -
Variants§
Plus
+
Minus
-
Division
/
FloorDivision
//
Multiplication
*
Modulo
%
Exponentiation
^
Concatenation
..
NotEqual
~=
And
and
Or
or
Not
not
Intersection
&
Union
|
Optional
?
Length
#
Implementations§
Trait Implementations§
impl Copy for Operator
impl Eq for Operator
Source§impl Ord for Operator
impl Ord for Operator
1.21.0 (const: unstable) · 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 PartialOrd for Operator
impl PartialOrd for Operator
impl StructuralPartialEq for Operator
Auto Trait Implementations§
impl Freeze for Operator
impl RefUnwindSafe for Operator
impl Send for Operator
impl Sync for Operator
impl Unpin for Operator
impl UnsafeUnpin for Operator
impl UnwindSafe for Operator
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