Skip to main content

DecodeState

Trait DecodeState 

Source
pub trait DecodeState: Sealed {
    type LazyOrParsed<Raw, Parsed>;
}
Expand description

Type-state marker for Layer01 and related column wrappers.

Implementors determine how (Raw, Parsed) column pairs are stored:

  • Lazy stores an LazyParsed<Raw, Parsed> enum that can be in Raw, Parsed, or ParsingFailed state.
  • Parsed stores only Parsed, giving zero-cost infallible field access.

Required Associated Types§

Source

type LazyOrParsed<Raw, Parsed>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl DecodeState for Lazy

Source§

type LazyOrParsed<Raw, Parsed> = LazyParsed<Raw, Parsed>

Source§

impl DecodeState for Parsed

Source§

type LazyOrParsed<Raw, Parsed> = Parsed