pub struct HelixMini { /* private fields */ }Expand description
Stateful mini helix for embedding in a fixed character rectangle.
Implementations§
Source§impl HelixMini
impl HelixMini
pub fn new(seed: u64) -> Self
Sourcepub fn tick(&mut self, speed: f32)
pub fn tick(&mut self, speed: f32)
Advance by one nominal helix frame (~33 ms at speed 1.0), matching main.rs timing.
Sourcepub fn tick_elapsed(&mut self, speed: f32, elapsed: Duration)
pub fn tick_elapsed(&mut self, speed: f32, elapsed: Duration)
Advance using wall-clock time between draws so motion matches the CLI when the host
UI redraws slowly. Same model as main.rs: per frame theta += 0.16 * speed,
tick += speed.ceil(), frame sleep 33ms / speed.
Auto Trait Implementations§
impl Freeze for HelixMini
impl RefUnwindSafe for HelixMini
impl Send for HelixMini
impl Sync for HelixMini
impl Unpin for HelixMini
impl UnsafeUnpin for HelixMini
impl UnwindSafe for HelixMini
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