Trait NumOperations
pub trait NumOperations: Debug {
// Required methods
fn len(&self) -> usize;
fn name(&self) -> &'static str;
// Provided methods
fn is_empty(&self) -> bool { ... }
fn max_relative_shape_id(&self) -> Option<usize> { ... }
}Expand description
The number of operations contained in the data structure.
Required Methods§
Provided Methods§
fn max_relative_shape_id(&self) -> Option<usize>
fn max_relative_shape_id(&self) -> Option<usize>
The highest relative shape id this optimization names, if it names any.
None means the optimization names no relative shape, so it fits any stream.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".