Skip to main content

Box2dPayloadSource

Trait Box2dPayloadSource 

Source
pub trait Box2dPayloadSource {
    // Required method
    fn box2d_snapshot(&self) -> Box2dSnapshot;
}
Expand description

Producer-side trait. A box2d env implements this when it wants its recording to ship a FamilyPayload::Box2D instead of Ascii.

Required Methods§

Source

fn box2d_snapshot(&self) -> Box2dSnapshot

Returns a Box2dSnapshot capturing the current frame.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§