pub trait IWildness: 'static {
// Required methods
fn non_wild() -> Self;
fn get(&self) -> bool;
fn set(&mut self, wildness: bool) -> bool;
}
Expand description
Allows specializing KeTrees based on their eventual storage of wild KEs.
This is useful to allow KeTrees to be much faster at iterating when the queried KE is non-wild, and the KeTree is informed by its wildness that it doesn’t contain any wilds.
Required Methods§
fn non_wild() -> Self
fn get(&self) -> bool
fn set(&mut self, wildness: bool) -> bool
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.
Implementations on Foreign Types§
Source§impl IWildness for bool
Stores the wildness of the KeTree at runtime, allowing it to select its
iteration algorithms based on the wildness at the moment of query.
impl IWildness for bool
Stores the wildness of the KeTree at runtime, allowing it to select its iteration algorithms based on the wildness at the moment of query.