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§
Sourcetype Context: RecordsContext
type Context: RecordsContext
A context type that can be used to maintain state while parsing multiple records.
Sourcetype Error: From<<<Self::Context as RecordsContext>::Counter as RecordsCounter>::TooFewRecordsErr>
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
.