pub trait GetStat: Debug {
// Required method
fn get_stat(&self, stat: Stat) -> Option<Arc<dyn Array>>;
// Provided methods
fn expect_stat(&self, stat: Stat) -> Arc<dyn Array> { ... }
fn expect_single_stat<T: ArrowPrimitiveType>(&self, stat: Stat) -> T::Native { ... }
}
Required Methods§
Provided Methods§
fn expect_stat(&self, stat: Stat) -> Arc<dyn Array>
fn expect_single_stat<T: ArrowPrimitiveType>(&self, stat: Stat) -> T::Native
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.