pub trait AsShape {
// Required method
fn as_shape(&self) -> Shape;
}Expand description
Get the “shape” of a fields container, such as a struct or variant.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".