pub struct ArmRng;
Expand description
Implement an interface for accessing Arm v8.5 RNG instructions.
An empty struct is used to confirm that the system has the instructions available.
Example
use cortex_a::asm::random::ArmRng;
if let Some(rng) = ArmRng::new() {
let rand_num = rng.rndr();
}
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArmRng
impl Send for ArmRng
impl Sync for ArmRng
impl Unpin for ArmRng
impl UnwindSafe for ArmRng
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more