pub struct WasmPixelDemo {
pub buffer: GpuPixelBuffer,
pub config: WasmDemoConfig,
pub start_time: Instant,
pub complete: bool,
}Expand description
Demo state for TUI rendering
Fields§
§buffer: GpuPixelBufferGPU pixel buffer
config: WasmDemoConfigConfiguration
start_time: InstantStart time for measuring convergence
complete: boolWhether demo is complete
Implementations§
Source§impl WasmPixelDemo
impl WasmPixelDemo
Sourcepub fn new(config: WasmDemoConfig) -> Self
pub fn new(config: WasmDemoConfig) -> Self
Create new demo with configuration
Sourcepub fn stats(&self) -> CoverageStats
pub fn stats(&self) -> CoverageStats
Get current stats
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if demo is complete
Sourcepub fn frame_count(&self) -> u32
pub fn frame_count(&self) -> u32
Get frame count
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasmPixelDemo
impl RefUnwindSafe for WasmPixelDemo
impl Send for WasmPixelDemo
impl Sync for WasmPixelDemo
impl Unpin for WasmPixelDemo
impl UnsafeUnpin for WasmPixelDemo
impl UnwindSafe for WasmPixelDemo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more