pub trait Dim:
Copy
+ Debug
+ Default
+ Hash
+ Ord
+ Send
+ Sync {
type Merge<D: Dim>: Dim;
const SIZE: Option<usize>;
// Required methods
fn from_size(size: usize) -> Self;
fn size(self) -> usize;
}
Expand description
Array dimension trait.
Required Associated Constants§
Required Associated Types§
Required Methods§
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.