Trait soroban_sdk::prng::Fill

source ·
pub trait Fill {
    // Required method
    fn fill(&mut self, prng: &Prng);
}
Expand description

Implemented by types that support being filled by a Prng.

Required Methods§

source

fn fill(&mut self, prng: &Prng)

Fills the given value with the Prng.

Implementations on Foreign Types§

source§

impl Fill for u64

source§

fn fill(&mut self, prng: &Prng)

source§

impl Fill for [u8]

source§

fn fill(&mut self, prng: &Prng)

Fills the slice with the Prng.

Panics

If the slice is greater than u32::MAX in length.

source§

impl<const N: usize> Fill for [u8; N]

source§

fn fill(&mut self, prng: &Prng)

Fills the array with the Prng.

Panics

If the array is greater than u32::MAX in length.

Implementors§

source§

impl Fill for Bytes

source§

impl<const N: usize> Fill for BytesN<N>