[−][src]Struct pygamer::trng::Trng
Implementations
impl Trng
[src]
pub fn new(mclk: &mut MCLK, trng: TRNG) -> Trng
[src]
pub fn random(&self, buf: &mut [u8])
[src]
pub fn random_u8(&self) -> u8
[src]
pub fn random_u16(&self) -> u16
[src]
pub fn random_u32(&self) -> u32
[src]
pub fn random_u64(&self) -> u64
[src]
Trait Implementations
impl CryptoRng for Trng
[src]
impl Read for Trng
[src]
type Error = ()
Error type
fn read(&mut self, buffer: &mut [u8]) -> Result<(), <Trng as Read>::Error>
[src]
impl RngCore for Trng
[src]
fn next_u32(&mut self) -> u32
[src]
fn next_u64(&mut self) -> u64
[src]
fn fill_bytes(&mut self, dest: &mut [u8])
[src]
fn try_fill_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,