pub trait FormatArgs {
type Output<'a>: Display
where Self: 'a;
// Required method
fn from_index(&self, index: usize) -> Option<Self::Output<'_>>;
// Provided method
fn from_name(&self, _name: &str) -> Option<Self::Output<'_>> { ... }
}
Required Associated Types§
Required Methods§
fn from_index(&self, index: usize) -> Option<Self::Output<'_>>
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.