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§
Sourcefn write_slot(
&mut self,
slot: usize,
payload: Option<&[u8]>,
) -> Result<(), InternalError>
fn write_slot( &mut self, slot: usize, payload: Option<&[u8]>, ) -> Result<(), InternalError>
Record one slot payload for the current row.
Provided Methods§
Sourcefn write_scalar(
&mut self,
slot: usize,
value: ScalarSlotValueRef<'_>,
) -> Result<(), InternalError>
fn write_scalar( &mut self, slot: usize, value: ScalarSlotValueRef<'_>, ) -> Result<(), InternalError>
Record one scalar slot payload using the canonical scalar leaf envelope.