[−][src]Enum boa::syntax::ast::op::BitOp
A bitwise operator is an operator used to perform bitwise operations on bit patterns or binary numerals that involve the manipulation of individual bits.
More information:
Variants
Performs the AND operation on each pair of bits. a AND b yields 1 only if both a and b are 1.
Syntax: x & y
More information:
Performs the OR operation on each pair of bits. a OR b yields 1 if either a or b is 1.
Syntax: x | y
More information:
Performs the XOR operation on each pair of bits. a XOR b yields 1 if a and b are different.
Syntax: x ^ y
More information:
This operator shifts the first operand the specified number of bits to the left.
Syntax: x << y
Excess bits shifted off to the left are discarded. Zero bits are shifted in from the right.
More information:
This operator shifts the first operand the specified number of bits to the right.
Syntax: x >> y
Excess bits shifted off to the right are discarded. Copies of the leftmost bit are shifted in from the left. Since the new leftmost bit has the same value as the previous leftmost bit, the sign bit (the leftmost bit) does not change. Hence the name "sign-propagating".
More information:
This operator shifts the first operand the specified number of bits to the right.
Syntax: x >>> y
Excess bits shifted off to the right are discarded. Zero bits are shifted in from the left. The sign bit becomes 0, so the result is always non-negative. Unlike the other bitwise operators, zero-fill right shift returns an unsigned 32-bit integer.
More information:
Trait Implementations
impl Clone for BitOp
[src]
impl Copy for BitOp
[src]
impl Debug for BitOp
[src]
impl Display for BitOp
[src]
impl Finalize for BitOp
[src]
impl From<BitOp> for BinOp
[src]
impl PartialEq<BitOp> for BitOp
[src]
impl StructuralPartialEq for BitOp
[src]
impl Trace for BitOp
[src]
Auto Trait Implementations
impl RefUnwindSafe for BitOp
impl Send for BitOp
impl Sync for BitOp
impl Unpin for BitOp
impl UnwindSafe for BitOp
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,