Skip to main content

EntityTag

Trait EntityTag 

Source
pub trait EntityTag {
    const PREFIX: &'static str = "ID";
}
Expand description

Marker for types usable as ID tag types.

Types that implement this trait can be used as the Tag for EntityIdU8 and similar types.

Provided Associated Constants§

Source

const PREFIX: &'static str = "ID"

The prefix that should be shown before the actual value of the id, when an id type is printed with either Debug or Display.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§