pub trait SpacingExt {
// Required methods
fn is_joint(&self) -> bool;
fn is_alone(&self) -> bool;
// Provided method
fn punch(self, ch: char) -> Punct
where Self: Sized { ... }
}Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".