DisplayIndex

Trait DisplayIndex 

pub trait DisplayIndex {
    // Required method
    fn write(&self, idx: usize, f: &mut dyn Write) -> Result<(), FormatError>;
}
Expand description

Display but accepting an index

Required Methods§

fn write(&self, idx: usize, f: &mut dyn Write) -> Result<(), FormatError>

Write the value of the underlying array at idx to f.

Implementors§