Trait Prefix

Source
pub trait Prefix {
    // Required method
    fn prefix() -> &'static str;

    // Provided method
    fn delimiter() -> &'static str { ... }
}
Expand description

Trait for entity-specific prefixes

  • Defines a unique prefix for each entity type.
  • Allows custom delimiter (default: _).

Required Methods§

Source

fn prefix() -> &'static str

Provided Methods§

Source

fn delimiter() -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§