pub trait RankedSliceable: Ranked {
// Required method
fn sliced(&self, region: Region) -> Self;
}Expand description
Extension of Ranked for types that can materialize a new owned
view.
sliced constructs a new instance containing only the items in
the given region. Unlike Ranked::get, which only provides
borrowed access, sliced requires that the implementor can
produce owned values for the specified sub-region.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.