pub trait Slice {
type Element;
// Required method
fn slice(&self) -> &[Self::Element];
}Expand description
Types that may be used as a data slice for Fixed and Bounded ring buffers.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".