#[repr(transparent)]pub struct RandomNumber(pub u32);Expand description
This register contains a random 32 bit number which is computed on demand, at each time it is read
Tuple Fields§
§0: u32Implementations§
Source§impl RandomNumber
impl RandomNumber
Sourcepub const fn random_number(&self) -> u32
pub const fn random_number(&self) -> u32
This register contains a random 32 bit number which is computed on demand, at each time it is read.
Sourcepub const fn set_random_number(&mut self, val: u32)
pub const fn set_random_number(&mut self, val: u32)
This register contains a random 32 bit number which is computed on demand, at each time it is read.
Trait Implementations§
Source§impl Clone for RandomNumber
impl Clone for RandomNumber
Source§fn clone(&self) -> RandomNumber
fn clone(&self) -> RandomNumber
Returns a duplicate 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 RandomNumber
impl Debug for RandomNumber
Source§impl Default for RandomNumber
impl Default for RandomNumber
Source§fn default() -> RandomNumber
fn default() -> RandomNumber
Returns the “default value” for a type. Read more
Source§impl PartialEq for RandomNumber
impl PartialEq for RandomNumber
impl Copy for RandomNumber
impl Eq for RandomNumber
impl StructuralPartialEq for RandomNumber
Auto Trait Implementations§
impl Freeze for RandomNumber
impl RefUnwindSafe for RandomNumber
impl Send for RandomNumber
impl Sync for RandomNumber
impl Unpin for RandomNumber
impl UnwindSafe for RandomNumber
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