pub struct KeyframeRecorder { /* private fields */ }Expand description
Keyframe recorder that captures element state per frame.
Implementations§
Source§impl KeyframeRecorder
impl KeyframeRecorder
Sourcepub fn record_frame(&mut self, commands: &[RenderCommand])
pub fn record_frame(&mut self, commands: &[RenderCommand])
Record one frame of render commands.
Elements are tracked by ID across frames. The first frame establishes the element set; subsequent frames append values to existing elements.
Sourcepub fn export(&self) -> KeyframesExport
pub fn export(&self) -> KeyframesExport
Export captured keyframes as a serializable struct.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Get the number of recorded frames.
Sourcepub fn element_count(&self) -> usize
pub fn element_count(&self) -> usize
Get the number of tracked elements.
Trait Implementations§
Source§impl Clone for KeyframeRecorder
impl Clone for KeyframeRecorder
Source§fn clone(&self) -> KeyframeRecorder
fn clone(&self) -> KeyframeRecorder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KeyframeRecorder
impl RefUnwindSafe for KeyframeRecorder
impl Send for KeyframeRecorder
impl Sync for KeyframeRecorder
impl Unpin for KeyframeRecorder
impl UnsafeUnpin for KeyframeRecorder
impl UnwindSafe for KeyframeRecorder
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