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 aarch64_cpu::asm::random::ArmRng;
if let Some(rng) = ArmRng::new() {
let rand_num = rng.rndr();
}
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArmRng
impl RefUnwindSafe for ArmRng
impl Send for ArmRng
impl Sync for ArmRng
impl Unpin for ArmRng
impl UnwindSafe for ArmRng
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)