pub enum BinOp {
Show 13 variants
And {
range: TextRange,
},
Or {
range: TextRange,
},
Add {
range: TextRange,
},
Sub {
range: TextRange,
},
Mul {
range: TextRange,
},
Div {
range: TextRange,
},
Mod {
range: TextRange,
},
Eq {
range: TextRange,
},
Ne {
range: TextRange,
},
Lt {
range: TextRange,
},
Le {
range: TextRange,
},
Gt {
range: TextRange,
},
Ge {
range: TextRange,
},
}
Expand description
Defines binary operators for this crate.
Variants§
And
The &&
operator (logical and)
Or
The ||
operator (logical or)
Add
The +
operator (addition)
Sub
The -
operator (subtraction)
Mul
The *
operator (multiplication)
Div
The /
operator (division)
Mod
The ‘%’ operator (modulo)
Eq
The ==
operator (equality)
Ne
The !=
operator (not equal to)
Lt
The <
operator (less than)
Le
The <=
operator (less than or equal to)
Gt
The >
operator (greater than)
Ge
The >=
operator (greater than or equal to)
Implementations§
Trait Implementations§
source§impl EnumDebug for BinOp
impl EnumDebug for BinOp
source§fn type_name() -> &'static str
fn type_name() -> &'static str
Returns the static name of the type used for EnumDebug-printing. Read more
source§fn variant_names() -> &'static [&'static str]
fn variant_names() -> &'static [&'static str]
Returns all variants in the trait as a list of names. Read more
source§fn variant_name(&self) -> &'static str
fn variant_name(&self) -> &'static str
Returns the static name of the variant. Read more
source§fn variant(&self) -> EnumDebugFormatter<'_, Self>
fn variant(&self) -> EnumDebugFormatter<'_, Self>
Returns a formatter for this enum that writes its variant name. Read more
Auto Trait Implementations§
impl Freeze for BinOp
impl RefUnwindSafe for BinOp
impl Send for BinOp
impl Sync for BinOp
impl Unpin for BinOp
impl UnwindSafe for BinOp
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request