pub trait DisplayIndex {
// Required method
fn write(&self, idx: usize, f: &mut dyn Write) -> FormatResult;
}Expand description
Display but accepting an index
Required Methods§
Sourcefn write(&self, idx: usize, f: &mut dyn Write) -> FormatResult
fn write(&self, idx: usize, f: &mut dyn Write) -> FormatResult
Write the value of the underlying array at idx to f.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".