Enum starlark::typing::TypingBinOp
source · pub enum TypingBinOp {
Show 13 variants
Add,
Sub,
Div,
FloorDiv,
Mul,
Percent,
In,
BitOr,
BitXor,
BitAnd,
Less,
LeftShift,
RightShift,
}
Expand description
Binary operator for typechecker.
Variants§
Add
+
.
Sub
-
.
Div
/
.
FloorDiv
//
.
Mul
*
.
Percent
%
.
In
y in x
.
BitOr
|
.
BitXor
^
.
BitAnd
&
.
Less
<
.
LeftShift
<<
.
RightShift
>>
.
Trait Implementations§
source§impl Clone for TypingBinOp
impl Clone for TypingBinOp
source§fn clone(&self) -> TypingBinOp
fn clone(&self) -> TypingBinOp
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 TypingBinOp
impl Debug for TypingBinOp
source§impl Display for TypingBinOp
impl Display for TypingBinOp
source§impl PartialEq for TypingBinOp
impl PartialEq for TypingBinOp
source§fn eq(&self, other: &TypingBinOp) -> bool
fn eq(&self, other: &TypingBinOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TypingBinOp
impl Eq for TypingBinOp
impl StructuralPartialEq for TypingBinOp
Auto Trait Implementations§
impl RefUnwindSafe for TypingBinOp
impl Send for TypingBinOp
impl Sync for TypingBinOp
impl Unpin for TypingBinOp
impl UnwindSafe for TypingBinOp
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.