pub trait Locomotion2DPayloadSource {
// Required method
fn locomotion2d_snapshot(&self) -> Locomotion2DSnapshot;
}Expand description
Producer-side trait. A locomotion env implements this to supply the only
rendering pathway in the stack — locomotion envs do not implement
AsciiRenderable, so this payload is the canonical view.
Required Methods§
Sourcefn locomotion2d_snapshot(&self) -> Locomotion2DSnapshot
fn locomotion2d_snapshot(&self) -> Locomotion2DSnapshot
Returns a Locomotion2DSnapshot capturing the current frame.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".