wiwi::slice

Trait Unsize

Source
pub trait Unsize {
    type Unsized: ?Sized;

    // Required methods
    fn unsize(&self) -> &Self::Unsized;
    fn unsize_mut(&mut self) -> &mut Self::Unsized;
}

Required Associated Types§

Required Methods§

Source

fn unsize(&self) -> &Self::Unsized

Source

fn unsize_mut(&mut self) -> &mut Self::Unsized

Implementations on Foreign Types§

Source§

impl<T, const N: usize> Unsize for [T; N]

Source§

type Unsized = [T]

Source§

fn unsize(&self) -> &[T]

Source§

fn unsize_mut(&mut self) -> &mut [T]

Implementors§