pub trait InputKind {
    type Array: ArrayKind;
    type Reader: SourceRead<Self>;

    // Required method
    fn new_reader(&self, acc: &Accessor) -> Option<Self::Reader>;
}
Expand description

A trait implemented on marker types like XYZ to allow for strict typing of input kinds.

Required Associated Types§

source

type Array: ArrayKind

The array type that this reader is expecting. Must be one of the types in ArrayElement.

source

type Reader: SourceRead<Self>

The associated reader type.

Required Methods§

source

fn new_reader(&self, acc: &Accessor) -> Option<Self::Reader>

Constructs a new reader object from the given Accessor.

Implementors§