Trait wyz::comu::SliceReferential[][src]

pub trait SliceReferential<'a>: Referential<'a> + Sealed {
    type ElementAddr;
    unsafe fn from_raw_parts(ptr: Self::ElementAddr, len: usize) -> Self::Ref;
}
Expand description

Allows an Address<M, [T]> to produce an ordinary slice reference.

Associated Types

The type of the element pointer.

Required methods

Constructs an ordinary slice reference from a base-address and a length.

Parameters
  • ptr: The address of the base element in the slice.
  • len: The number of elements, beginning at ptr, in the slice.
Safety

The base address and the element count must describe a valid region of memory.

Implementors