pub trait StructuralFieldDecoder: Debug + Send {
// Required methods
fn accept_page(&mut self, _child: LoadedPageShard) -> Result<()>;
fn drain(
&mut self,
num_rows: u64,
) -> Result<Box<dyn StructuralDecodeArrayTask>>;
fn data_type(&self) -> &DataType;
}Required Methods§
Sourcefn accept_page(&mut self, _child: LoadedPageShard) -> Result<()>
fn accept_page(&mut self, _child: LoadedPageShard) -> Result<()>
Add a newly scheduled child decoder
The default implementation does not expect children and returns an error.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".