pub struct BinaryOperands<R> {
pub dst: R,
pub src1: R,
pub src2: R,
}
Expand description
Operands to a binary operation, packed into a 16-bit word (5 bits per register).
Fields§
§dst: R
The destination register, packed in bits 0..5.
src1: R
The first source register, packed in bits 5..10.
src2: R
The second source register, packed in bits 10..15.
Implementations§
Source§impl<R: Reg> BinaryOperands<R>
impl<R: Reg> BinaryOperands<R>
Trait Implementations§
Source§impl<'arbitrary, R: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for BinaryOperands<R>
impl<'arbitrary, R: Arbitrary<'arbitrary>> Arbitrary<'arbitrary> for BinaryOperands<R>
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§impl<R: Clone> Clone for BinaryOperands<R>
impl<R: Clone> Clone for BinaryOperands<R>
Source§fn clone(&self) -> BinaryOperands<R>
fn clone(&self) -> BinaryOperands<R>
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<R: Debug> Debug for BinaryOperands<R>
impl<R: Debug> Debug for BinaryOperands<R>
Source§impl<R: Reg> Decode for BinaryOperands<R>
Available on crate feature decode
only.
impl<R: Reg> Decode for BinaryOperands<R>
Available on crate feature
decode
only.Source§impl<R: Hash> Hash for BinaryOperands<R>
impl<R: Hash> Hash for BinaryOperands<R>
Source§impl<R: Ord> Ord for BinaryOperands<R>
impl<R: Ord> Ord for BinaryOperands<R>
Source§fn cmp(&self, other: &BinaryOperands<R>) -> Ordering
fn cmp(&self, other: &BinaryOperands<R>) -> 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<R: PartialEq> PartialEq for BinaryOperands<R>
impl<R: PartialEq> PartialEq for BinaryOperands<R>
Source§impl<R: PartialOrd> PartialOrd for BinaryOperands<R>
impl<R: PartialOrd> PartialOrd for BinaryOperands<R>
impl<R: Copy> Copy for BinaryOperands<R>
impl<R: Eq> Eq for BinaryOperands<R>
impl<R> StructuralPartialEq for BinaryOperands<R>
Auto Trait Implementations§
impl<R> Freeze for BinaryOperands<R>where
R: Freeze,
impl<R> RefUnwindSafe for BinaryOperands<R>where
R: RefUnwindSafe,
impl<R> Send for BinaryOperands<R>where
R: Send,
impl<R> Sync for BinaryOperands<R>where
R: Sync,
impl<R> Unpin for BinaryOperands<R>where
R: Unpin,
impl<R> UnwindSafe for BinaryOperands<R>where
R: UnwindSafe,
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