pub struct Recipe {
pub character: usize,
pub macros: Macros,
pub seed: u64,
pub keep: Vec<usize>,
pub palette: Palette,
}Expand description
What to generate.
Fields§
§character: usizeIndex into Driver::characters.
macros: MacrosThe four dials.
seed: u64The seed: the same recipe and seed make the same bytes.
keep: Vec<usize>Indices into Curation::pages whose fields are copied from the
base program as they are.
palette: PaletteUser units the program may select. Empty: none is used. Not empty: the driver uses one (or an oscillator and an effect) wherever the character can take it, with each parameter inside its declared range, so a caller decides which sounds of a hand get units by which recipes carry a palette. A program never selects a unit the palette lacks.
Trait Implementations§
impl StructuralPartialEq for Recipe
Auto Trait Implementations§
impl Freeze for Recipe
impl RefUnwindSafe for Recipe
impl Send for Recipe
impl Sync for Recipe
impl Unpin for Recipe
impl UnsafeUnpin for Recipe
impl UnwindSafe for Recipe
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