pub struct RegSet<R> { /* private fields */ }
Expand description
A set of registers, packed into a 32-bit bitset.
Implementations§
Source§impl<R: Reg> RegSet<R>
impl<R: Reg> RegSet<R>
Sourcepub fn from_bitset(bitset: ScalarBitSet<u32>) -> Self
pub fn from_bitset(bitset: ScalarBitSet<u32>) -> Self
Create a RegSet
from a ScalarBitSet
.
Sourcepub fn to_bitset(self) -> ScalarBitSet<u32>
pub fn to_bitset(self) -> ScalarBitSet<u32>
Convert a RegSet
into a ScalarBitSet
.
Trait Implementations§
Source§impl<'a, R: Reg> Arbitrary<'a> for RegSet<R>
Available on crate feature arbitrary
only.
impl<'a, R: Reg> Arbitrary<'a> for RegSet<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> From<ScalarBitSet<u32>> for RegSet<R>
impl<R: Reg> From<ScalarBitSet<u32>> for RegSet<R>
Source§fn from(bitset: ScalarBitSet<u32>) -> Self
fn from(bitset: ScalarBitSet<u32>) -> Self
Converts to this type from the input type.
Source§impl<R: Reg> FromIterator<R> for RegSet<R>
impl<R: Reg> FromIterator<R> for RegSet<R>
Source§fn from_iter<I: IntoIterator<Item = R>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = R>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl<R: Reg> Into<ScalarBitSet<u32>> for RegSet<R>
impl<R: Reg> Into<ScalarBitSet<u32>> for RegSet<R>
Source§fn into(self) -> ScalarBitSet<u32>
fn into(self) -> ScalarBitSet<u32>
Converts this type into the (usually inferred) input type.
Source§impl<R: Reg> IntoIterator for RegSet<R>
impl<R: Reg> IntoIterator for RegSet<R>
impl<R: Reg> Copy for RegSet<R>
impl<R: Reg> Eq for RegSet<R>
Auto Trait Implementations§
impl<R> Freeze for RegSet<R>
impl<R> RefUnwindSafe for RegSet<R>where
R: RefUnwindSafe,
impl<R> Send for RegSet<R>where
R: Send,
impl<R> Sync for RegSet<R>where
R: Sync,
impl<R> Unpin for RegSet<R>where
R: Unpin,
impl<R> UnwindSafe for RegSet<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