pub enum CBinaryOp {
Add,
Sub,
Mul,
Div,
Mod,
BitAnd,
BitOr,
BitXor,
Shl,
Shr,
LogAnd,
LogOr,
}Expand description
C binary operators
Variants§
Add
Addition
Sub
Subtraction
Mul
Multiplication
Div
Division
Mod
Modulo
BitAnd
Bitwise AND
BitOr
Bitwise OR
BitXor
Bitwise XOR
Shl
Left shift
Shr
Right shift
LogAnd
Logical AND
LogOr
Logical OR
Implementations§
Trait Implementations§
impl Copy for CBinaryOp
impl Eq for CBinaryOp
impl StructuralPartialEq for CBinaryOp
Auto Trait Implementations§
impl Freeze for CBinaryOp
impl RefUnwindSafe for CBinaryOp
impl Send for CBinaryOp
impl Sync for CBinaryOp
impl Unpin for CBinaryOp
impl UnsafeUnpin for CBinaryOp
impl UnwindSafe for CBinaryOp
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more