Trait outref::AsOut

source ·
pub unsafe trait AsOut<T: ?Sized> {
    // Required method
    fn as_out(&mut self) -> Out<'_, T>;
}
Expand description

Extension trait for converting a mutable reference to an out reference.

§Safety

This trait can be trusted to be implemented correctly for all types.

Required Methods§

source

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.

Implementations on Foreign Types§

source§

impl<T> AsOut<[T]> for [T]
where T: Copy,

source§

fn as_out(&mut self) -> Out<'_, [T]>

source§

impl<T> AsOut<[T]> for [MaybeUninit<T>]

source§

fn as_out(&mut self) -> Out<'_, [T]>

source§

impl<T> AsOut<T> for MaybeUninit<T>

source§

fn as_out(&mut self) -> Out<'_, T>

Implementors§

source§

impl<T> AsOut<T> for T
where T: Copy,