Skip to main content

DisplayIndex

Trait DisplayIndex 

Source
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§

Source

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

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".

Implementors§