pub trait Layout:
Sealed
+ Copy
+ 'static { }Expand description
Sealed marker trait for tensor layout ZSTs.
External crates cannot implement this trait — the crate::private::Sealed supertrait
is pub(crate) only. Only RowMajor and ColMajor satisfy Layout.
TensorView<_, _, _, L> requires L: Layout, preventing accidental use of
arbitrary unit types as layout parameters.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".