pub trait Cast<T: ?Sized>: SealedCast<T> {
// Required methods
fn cast(&self) -> &T;
fn cast_mut(&mut self) -> &mut T;
}Expand description
Convert between slice types
pub trait Cast<T: ?Sized>: SealedCast<T> {
// Required methods
fn cast(&self) -> &T;
fn cast_mut(&mut self) -> &mut T;
}Convert between slice types