Trait ioslice::CastSlice

source ·
pub trait CastSlice<'a, T>: Sized {
    // Required method
    fn cast_slice(selves: &'a [Self]) -> &'a [T];
}
Expand description

A trait for casting slices of different types to and from each other, provided that they have the same memory layout.

Required Methods§

source

fn cast_slice(selves: &'a [Self]) -> &'a [T]

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<'a, I: InitMarker> CastSlice<'a, IoSlice<'a, I>> for IoBox<I>

source§

impl<'a, I: InitMarker> CastSlice<'a, IoSliceMut<'a, I>> for IoBox<I>

source§

impl<T> CastSlice<'_, T> for T