Skip to main content

TokenFactory

Trait TokenFactory 

Source
pub trait TokenFactory {
    // Required method
    fn create(&self, spec: TokenSpec<'_>) -> CommonToken;
}

Required Methods§

Source

fn create(&self, spec: TokenSpec<'_>) -> CommonToken

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§