pub trait Generator {
// Required methods
fn method_1(&mut self) -> Pokemon;
fn method_2(&mut self) -> Pokemon;
fn method_4(&mut self) -> Pokemon;
}Required Methods§
Sourcefn method_1(&mut self) -> Pokemon
fn method_1(&mut self) -> Pokemon
Four RNG calls are made, two to generate the PID and two to generate the IVs. It can be illustrated as [PID] [PID] [IVs] [IVs].
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".