Skip to main content

SlotWriter

Trait SlotWriter 

Source
pub trait SlotWriter {
    // Required method
    fn write_slot(
        &mut self,
        slot: usize,
        payload: Option<&[u8]>,
    ) -> Result<(), InternalError>;

    // Provided method
    fn write_scalar(
        &mut self,
        slot: usize,
        value: ScalarSlotValueRef<'_>,
    ) -> Result<(), InternalError> { ... }
}
Expand description

SlotWriter

SlotWriter is the canonical row-container output seam used by persisted-row writers.

Required Methods§

Source

fn write_slot( &mut self, slot: usize, payload: Option<&[u8]>, ) -> Result<(), InternalError>

Record one slot payload for the current row.

Provided Methods§

Source

fn write_scalar( &mut self, slot: usize, value: ScalarSlotValueRef<'_>, ) -> Result<(), InternalError>

Record one scalar slot payload using the canonical scalar leaf envelope.

Implementors§