pub struct WavePointSlots { /* private fields */ }Expand description
The resolved register index of each field, or None for one the
program never mentions. Built once at load.
Implementations§
Source§impl WavePointSlots
impl WavePointSlots
Sourcepub fn resolve(index: &impl Fn(&str) -> Option<u16>) -> Self
pub fn resolve(index: &impl Fn(&str) -> Option<u16>) -> Self
Resolve every field against a roster.
Sourcepub fn seed(&self, state: &mut VmState)
pub fn seed(&self, state: &mut VmState)
Seed every field’s register with MilkDrop’s default, before the program runs.
Sourcepub fn read(&self, state: &VmState) -> WavePoint
pub fn read(&self, state: &VmState) -> WavePoint
Read every field back, converting the rates.
Both arms convert. A default is stated in the reference’s
vocabulary exactly as a program’s own value is — Default is
MilkDrop’s per-frame number, not this engine’s per-second one — so
an unnamed output that skipped convert would leave a per-frame
factor in a field whose doc says “per second”. That was
design-backlog 0121, and it silently ran an entire Plan 0109
experiment at 0.98/s instead of 0.5455/s.
Trait Implementations§
Source§impl Clone for WavePointSlots
impl Clone for WavePointSlots
Source§fn clone(&self) -> WavePointSlots
fn clone(&self) -> WavePointSlots
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WavePointSlots
impl Debug for WavePointSlots
Source§impl Default for WavePointSlots
impl Default for WavePointSlots
Source§fn default() -> WavePointSlots
fn default() -> WavePointSlots
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WavePointSlots
impl RefUnwindSafe for WavePointSlots
impl Send for WavePointSlots
impl Sync for WavePointSlots
impl Unpin for WavePointSlots
impl UnsafeUnpin for WavePointSlots
impl UnwindSafe for WavePointSlots
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