[][src]Trait const_buffer::UninitWrapper

pub trait UninitWrapper {
    type Output: ?Sized;
    unsafe fn get(&self) -> &Self::Output;
unsafe fn get_mut(&mut self) -> &mut Self::Output; }

A helper trait that generalizes over MaybeUninit<T> and [MaybeUninit<T>] for the purpose of making get and get_mut work with both positions and ranges.

It is not useful to implement this trait yourself.

Associated Types

type Output: ?Sized

Loading content...

Required methods

unsafe fn get(&self) -> &Self::Output

unsafe fn get_mut(&mut self) -> &mut Self::Output

Loading content...

Implementations on Foreign Types

impl<T> UninitWrapper for MaybeUninit<T>[src]

type Output = T

Loading content...

Implementors

impl<T> UninitWrapper for [MaybeUninit<T>][src]

type Output = [T]

Loading content...