Skip to main content

SliceLike

Trait SliceLike 

Source
pub trait SliceLike: PointerLength {
    type Element;
}
Expand description

This trait is implemented for all slice-like structures. Currently there are only 2 of these types: arrays [T; N] and slices [T].

Required Associated Types§

Source

type Element

The type of the elements held by the slice-like structure.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T, const N: usize> SliceLike for [T; N]

Source§

impl<T> SliceLike for [T]

Implementors§