pub trait TryToTokens {
// Required method
fn try_to_tokens(&self, tokens: &mut TokenStream) -> BindgenResult<()>;
// Provided method
fn try_to_token_stream(&self) -> BindgenResult<TokenStream> { ... }
}Required Methods§
fn try_to_tokens(&self, tokens: &mut TokenStream) -> BindgenResult<()>
Provided Methods§
fn try_to_token_stream(&self) -> BindgenResult<TokenStream>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".