trait DisplayIndexState<'a> {
type State;
// Required methods
fn prepare(
&self,
options: &FormatOptions<'a>,
) -> Result<Self::State, ArrowError>;
fn write(
&self,
state: &Self::State,
idx: usize,
f: &mut dyn Write,
) -> FormatResult;
}Expand description
DisplayIndex with additional state
Required Associated Types§
Required Methods§
fn prepare( &self, options: &FormatOptions<'a>, ) -> Result<Self::State, ArrowError>
fn write( &self, state: &Self::State, idx: usize, f: &mut dyn Write, ) -> FormatResult
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".