pub struct BinaryOperands<D, S1 = D, S2 = D> {
pub dst: D,
pub src1: S1,
pub src2: S2,
}
Expand description
Operands to a binary operation, packed into a 16-bit word (5 bits per register).
Fields§
§dst: D
The destination register, packed in bits 0..5.
src1: S1
The first source register, packed in bits 5..10.
src2: S2
The second source register, packed in bits 10..15.
Implementations§
Source§impl<D, S1, S2> BinaryOperands<D, S1, S2>
impl<D, S1, S2> BinaryOperands<D, S1, S2>
Trait Implementations§
Source§impl<'arbitrary, D: Arbitrary<'arbitrary>, S1: Arbitrary<'arbitrary>, S2: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for BinaryOperands<D, S1, S2>
impl<'arbitrary, D: Arbitrary<'arbitrary>, S1: Arbitrary<'arbitrary>, S2: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for BinaryOperands<D, S1, S2>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured
this type
needs to construct itself. Read moreSource§impl<D: Clone, S1: Clone, S2: Clone> Clone for BinaryOperands<D, S1, S2>
impl<D: Clone, S1: Clone, S2: Clone> Clone for BinaryOperands<D, S1, S2>
Source§fn clone(&self) -> BinaryOperands<D, S1, S2>
fn clone(&self) -> BinaryOperands<D, S1, S2>
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<D: Reg, S1: Reg, S2: Reg> Decode for BinaryOperands<D, S1, S2>
Available on crate feature decode
only.
impl<D: Reg, S1: Reg, S2: Reg> Decode for BinaryOperands<D, S1, S2>
Available on crate feature
decode
only.Source§impl<D: Reg, S1: Reg> Decode for BinaryOperands<D, S1, U6>
Available on crate feature decode
only.
impl<D: Reg, S1: Reg> Decode for BinaryOperands<D, S1, U6>
Available on crate feature
decode
only.Source§impl<D: Reg, S1: Reg, S2: Reg> Encode for BinaryOperands<D, S1, S2>
Available on crate feature encode
only.
impl<D: Reg, S1: Reg, S2: Reg> Encode for BinaryOperands<D, S1, S2>
Available on crate feature
encode
only.Source§impl<D: Reg, S1: Reg> Encode for BinaryOperands<D, S1, U6>
Available on crate feature encode
only.
impl<D: Reg, S1: Reg> Encode for BinaryOperands<D, S1, U6>
Available on crate feature
encode
only.Source§impl<D: Ord, S1: Ord, S2: Ord> Ord for BinaryOperands<D, S1, S2>
impl<D: Ord, S1: Ord, S2: Ord> Ord for BinaryOperands<D, S1, S2>
Source§fn cmp(&self, other: &BinaryOperands<D, S1, S2>) -> Ordering
fn cmp(&self, other: &BinaryOperands<D, S1, S2>) -> Ordering
1.21.0 · 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<D: PartialOrd, S1: PartialOrd, S2: PartialOrd> PartialOrd for BinaryOperands<D, S1, S2>
impl<D: PartialOrd, S1: PartialOrd, S2: PartialOrd> PartialOrd for BinaryOperands<D, S1, S2>
impl<D: Copy, S1: Copy, S2: Copy> Copy for BinaryOperands<D, S1, S2>
impl<D: Eq, S1: Eq, S2: Eq> Eq for BinaryOperands<D, S1, S2>
impl<D, S1, S2> StructuralPartialEq for BinaryOperands<D, S1, S2>
Auto Trait Implementations§
impl<D, S1, S2> Freeze for BinaryOperands<D, S1, S2>
impl<D, S1, S2> RefUnwindSafe for BinaryOperands<D, S1, S2>
impl<D, S1, S2> Send for BinaryOperands<D, S1, S2>
impl<D, S1, S2> Sync for BinaryOperands<D, S1, S2>
impl<D, S1, S2> Unpin for BinaryOperands<D, S1, S2>
impl<D, S1, S2> UnwindSafe for BinaryOperands<D, S1, S2>
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