pub struct Subregions(/* private fields */);
Expand description
Subregion Disable (SRD) bits for the 8 subregions in a region.
Note that some cores do not support subregions for small region sizes. Check the core’s User Guide for more information.
Implementations§
Source§impl Subregions
impl Subregions
Sourcepub const NONE: Self
pub const NONE: Self
None of the 8 subregions are enabled. Equivalent to disabling the entire region.
Sourcepub fn from_disable_bits(bits: u8) -> Self
pub fn from_disable_bits(bits: u8) -> Self
Creates a Subregions
mask from raw Subregion Disable (SRD) bits.
The least significant bit disables the lowest 1/8th of the region, and so on.
Trait Implementations§
Source§impl Clone for Subregions
impl Clone for Subregions
Source§fn clone(&self) -> Subregions
fn clone(&self) -> Subregions
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 Debug for Subregions
impl Debug for Subregions
Source§impl Default for Subregions
By default, all subregions are enabled.
impl Default for Subregions
By default, all subregions are enabled.
Source§impl PartialEq for Subregions
impl PartialEq for Subregions
impl Copy for Subregions
impl Eq for Subregions
impl StructuralPartialEq for Subregions
Auto Trait Implementations§
impl Freeze for Subregions
impl RefUnwindSafe for Subregions
impl Send for Subregions
impl Sync for Subregions
impl Unpin for Subregions
impl UnwindSafe for Subregions
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