Skip to main content

IdGenerator

Trait IdGenerator 

Source
pub trait IdGenerator:
    Debug
    + Send
    + Sync {
    // Required method
    fn new_id(&self, prefix: &str) -> String;
}

Required Methods§

Source

fn new_id(&self, prefix: &str) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§