Skip to main content

TickKey

Trait TickKey 

Source
pub trait TickKey: Copy {
    // Required method
    fn key(self) -> usize;
}
Expand description

Trait for types that can be used as the tick target in ScheduledTick.

Provides a usize key for deduplication (one tick per (BlockPos, key) pair).

Required Methods§

Source

fn key(self) -> usize

Returns a key suitable for dedup hashing.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§