Skip to main content

Wrapper

Trait Wrapper 

Source
pub trait Wrapper<Inner> {
    // Required method
    fn into_inner(self) -> Inner;
}
Expand description

A type that wraps a value of type Inner that can be retrieved via into_inner.

Required Methods§

Source

fn into_inner(self) -> Inner

Retrieve ownership of the wrapped value.

Implementations on Foreign Types§

Source§

impl Wrapper<bool> for AtomicBool

Source§

impl Wrapper<i8> for NonZeroI8

Source§

impl Wrapper<i8> for AtomicI8

Source§

impl Wrapper<i16> for NonZeroI16

Source§

impl Wrapper<i16> for AtomicI16

Source§

impl Wrapper<i32> for NonZeroI32

Source§

impl Wrapper<i32> for AtomicI32

Source§

impl Wrapper<i64> for NonZeroI64

Source§

impl Wrapper<i64> for AtomicI64

Source§

impl Wrapper<i128> for NonZeroI128

Source§

impl Wrapper<isize> for NonZeroIsize

Source§

impl Wrapper<isize> for AtomicIsize

Source§

impl Wrapper<u8> for NonZeroU8

Source§

impl Wrapper<u8> for AtomicU8

Source§

impl Wrapper<u16> for NonZeroU16

Source§

impl Wrapper<u16> for AtomicU16

Source§

impl Wrapper<u32> for NonZeroU32

Source§

impl Wrapper<u32> for AtomicU32

Source§

impl Wrapper<u64> for NonZeroU64

Source§

impl Wrapper<u64> for AtomicU64

Source§

impl Wrapper<u128> for NonZeroU128

Source§

impl Wrapper<usize> for NonZeroUsize

Source§

impl Wrapper<usize> for AtomicUsize

Source§

impl<T> Wrapper<T> for Cell<T>

Source§

fn into_inner(self) -> T

Source§

impl<T> Wrapper<T> for RefCell<T>

Source§

fn into_inner(self) -> T

Source§

impl<T> Wrapper<T> for UnsafeCell<T>

Source§

fn into_inner(self) -> T

Source§

impl<T> Wrapper<T> for Reverse<T>

Source§

fn into_inner(self) -> T

Source§

impl<T> Wrapper<T> for ManuallyDrop<T>

Source§

fn into_inner(self) -> T

Source§

impl<T> Wrapper<T> for Wrapping<T>

Source§

fn into_inner(self) -> T

Implementors§