Struct std::mem::slice

struct slice<Ptr> { ... }
Ptr: Pointer

Fat pointers to a contiguous region of memory.

Slice fat "pointers" are just regular structs that compiler handles in a special way with regards to syntax, implicit coercion and type inference. They are generic over the pointer-to-element type rather than the element type itself. This is an implementation detail to ensure that &mut [T] and &[T] are distinguished without having to have two distinct types for mutable and const slices.

Methods

impl slice { ... }

Mixins

impl slice { ... }