Skip to main content

PersistedRow

Trait PersistedRow 

Source
pub trait PersistedRow: EntityKind + Sized {
    // Required methods
    fn materialize_from_slots(
        slots: &mut dyn SlotReader,
    ) -> Result<Self, InternalError>;
    fn write_slots(&self, out: &mut dyn SlotWriter) -> Result<(), InternalError>;
}
Expand description

PersistedRow

PersistedRow is the derive-owned bridge between typed entities and slot-addressable persisted rows. It owns entity-specific materialization/default semantics while runtime paths stay structural at the row boundary.

Required Methods§

Source

fn materialize_from_slots( slots: &mut dyn SlotReader, ) -> Result<Self, InternalError>

Materialize one typed entity from one slot reader.

Source

fn write_slots(&self, out: &mut dyn SlotWriter) -> Result<(), InternalError>

Write one typed entity into one slot writer.

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§