[][src]Struct safer_ffi::boxed::Box

#[repr(transparent)]pub struct Box<T>(_);
This is supported on feature="alloc" only.

Same as Box<T>, (e.g., same #[repr(C)] layout), but with no non-aliasing guarantee.

C Layout

Implementations

impl<T> Box<T>[src]

pub fn new(value: T) -> Self[src]

This is supported on feature="alloc" only.

pub fn into(self: Box<T>) -> Box<T>[src]

This is supported on feature="alloc" only.

Trait Implementations

impl<T: Debug> Debug for Box<T>[src]

impl<T> Deref for Box<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for Box<T>[src]

impl<T> Drop for Box<T>[src]

impl<T> From<Box<T>> for Box<T>[src]

impl<T> ReprC for Box<T> where
    NonNullOwned<T>: ReprC
[src]

type CLayout = <NonNullOwned<T> as ReprC>::CLayout

The CType having the same layout as Self.

impl<T> Send for Box<T> where
    Box<T>: Send
[src]

impl<T> Sync for Box<T> where
    Box<T>: Sync
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Box<T> where
    T: RefUnwindSafe

impl<T> Unpin for Box<T> where
    T: Unpin

impl<T> UnwindSafe for Box<T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ManuallyDropMut for T

type Ret = ManuallyDrop<T>

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.