pub trait SliceReferential<'a>: Referential<'a> + Sealed {
type ElementAddr;
// Required method
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.
Required Associated Types§
Sourcetype ElementAddr
type ElementAddr
The type of the element pointer.
Required Methods§
Sourceunsafe fn from_raw_parts(ptr: Self::ElementAddr, len: usize) -> Self::Ref
unsafe fn from_raw_parts(ptr: Self::ElementAddr, len: usize) -> Self::Ref
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.