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.