soroban_sdk::prngTrait 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.
Fills the given value with the Prng.
Fills the slice with the Prng.
§Panics
If the slice is greater than u32::MAX in length.
Fills the array with the Prng.
§Panics
If the array is greater than u32::MAX in length.