pub trait length {
// Provided method
fn __len(&self) -> number { ... }
}Expand description
Metamethod controlling the length operator.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".