pub struct UpperRegSet<R> { /* private fields */ }
Expand description
A set of “upper half” registers, packed into a 16-bit bitset.
Registers stored in this bitset are offset by 16 and represent the upper half of the 32 registers for each class.
Implementations§
Source§impl<R: Reg> UpperRegSet<R>
impl<R: Reg> UpperRegSet<R>
Sourcepub fn from_bitset(bitset: ScalarBitSet<u16>) -> Self
pub fn from_bitset(bitset: ScalarBitSet<u16>) -> Self
Create a RegSet
from a ScalarBitSet
.
Sourcepub fn to_bitset(self) -> ScalarBitSet<u16>
pub fn to_bitset(self) -> ScalarBitSet<u16>
Convert a UpperRegSet
into a ScalarBitSet
.
Trait Implementations§
Source§impl<'a, R: Reg> Arbitrary<'a> for UpperRegSet<R>
Available on crate feature arbitrary
only.
impl<'a, R: Reg> Arbitrary<'a> for UpperRegSet<R>
Available on crate feature
arbitrary
only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
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<R: Reg> Clone for UpperRegSet<R>
impl<R: Reg> Clone for UpperRegSet<R>
Source§impl<R: Reg> Debug for UpperRegSet<R>
impl<R: Reg> Debug for UpperRegSet<R>
Source§impl<R: Reg> Default for UpperRegSet<R>
impl<R: Reg> Default for UpperRegSet<R>
Source§impl<R: Reg> From<ScalarBitSet<u16>> for UpperRegSet<R>
impl<R: Reg> From<ScalarBitSet<u16>> for UpperRegSet<R>
Source§fn from(bitset: ScalarBitSet<u16>) -> Self
fn from(bitset: ScalarBitSet<u16>) -> Self
Converts to this type from the input type.
Source§impl<R: Reg> Into<ScalarBitSet<u16>> for UpperRegSet<R>
impl<R: Reg> Into<ScalarBitSet<u16>> for UpperRegSet<R>
Source§fn into(self) -> ScalarBitSet<u16>
fn into(self) -> ScalarBitSet<u16>
Converts this type into the (usually inferred) input type.
Source§impl<R: Reg> IntoIterator for UpperRegSet<R>
impl<R: Reg> IntoIterator for UpperRegSet<R>
Source§impl<R: Reg> PartialEq for UpperRegSet<R>
impl<R: Reg> PartialEq for UpperRegSet<R>
impl<R: Reg> Copy for UpperRegSet<R>
impl<R: Reg> Eq for UpperRegSet<R>
Auto Trait Implementations§
impl<R> Freeze for UpperRegSet<R>
impl<R> RefUnwindSafe for UpperRegSet<R>where
R: RefUnwindSafe,
impl<R> Send for UpperRegSet<R>where
R: Send,
impl<R> Sync for UpperRegSet<R>where
R: Sync,
impl<R> Unpin for UpperRegSet<R>where
R: Unpin,
impl<R> UnwindSafe for UpperRegSet<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