Skip to main content

Tiled

Trait Tiled 

Source
pub trait Tiled:
    Copy
    + Eq
    + Hash {
    // Required method
    fn key(&self) -> Key;
}
Expand description

What a cache keys its tiles by: a tile’s Key, with whatever else tells the cache’s tiles apart — a server’s design, say.

Required Methods§

Source

fn key(&self) -> Key

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§