Skip to main content

ToToken

Trait ToToken 

Source
pub trait ToToken {
    type Token;

    // Required method
    fn to_token(&self) -> Option<Self::Token>;
}

Required Associated Types§

Required Methods§

Source

fn to_token(&self) -> Option<Self::Token>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§