pub trait ATrait {
// Required method
fn do_joke(&self) -> String;
}Expand description
TRAIT OF TONGUE-IN-CHEEK: This trait defines behaviors with a side-splitting twist. Implement it if you want your types to perform like a stand-up comedian.
For in-depth trait-based hilarity, see the ULTIMATE GUIDE FOR YOU TO READ.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".