pub trait AsSlice {
type Element;
// Required method
fn as_slice(&self) -> &[Self::Element];
}Expand description
Something that can be seen as an immutable slice
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".