pub trait RecordsImplLayout {
    type Context: RecordsContext;
    type Error: From<<<Self::Context as RecordsContext>::Counter as RecordsCounter>::TooFewRecordsErr>;
}
Expand description

Basic associated types used by a RecordsImpl.

This trait is kept separate from RecordsImpl so that the associated types do not depend on the lifetime parameter to RecordsImpl.

Required Associated Types§

source

type Context: RecordsContext

A context type that can be used to maintain state while parsing multiple records.

source

type Error: From<<<Self::Context as RecordsContext>::Counter as RecordsCounter>::TooFewRecordsErr>

The type of errors that may be returned by a call to RecordsImpl::parse_with_context.

Object Safety§

This trait is not object safe.

Implementors§