pub trait Supports<C>: Capability {
// Required method
fn supports(&self) -> Option<C>;
// Provided method
fn assert(&self) { ... }
}
Expand description
Check if capability supported.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.