pub trait ImmutableArray<T>: AsRef<[T]> {
// Required methods
fn length(&self) -> Length;
fn capacity(&self) -> Length;
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Represents a simply contiguous block of memory.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".