pub trait Length {
type Output;
// Required method
fn length(&self) -> Self::Output;
}Expand description
This type abstracts a vector or other object that can represents a length
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".