pub trait StructuralPageDecoder: Debug + Send {
// Required methods
fn drain(&mut self, num_rows: u64) -> Result<Box<dyn DecodePageTask>>;
fn num_rows(&self) -> u64;
// Provided method
fn decoded_bytes(&self, _num_rows: u64) -> Result<u64> { ... }
}Required Methods§
fn drain(&mut self, num_rows: u64) -> Result<Box<dyn DecodePageTask>>
fn num_rows(&self) -> u64
Provided Methods§
Sourcefn decoded_bytes(&self, _num_rows: u64) -> Result<u64>
fn decoded_bytes(&self, _num_rows: u64) -> Result<u64>
Returns the exact decoded byte count for the next num_rows rows
from this decoder’s current position, without consuming any rows.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".