BoxExt

Trait BoxExt 

Source
pub trait BoxExt<T> {
    // Required methods
    fn into_raw_parts(self) -> (*mut T, usize);
    unsafe fn from_raw_parts(ptr: *mut T, len: usize) -> Self;
}

Required Methods§

Source

fn into_raw_parts(self) -> (*mut T, usize)

Source

unsafe fn from_raw_parts(ptr: *mut T, len: usize) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> BoxExt<T> for Box<[T]>

Source§

fn into_raw_parts(self) -> (*mut T, usize)

Source§

unsafe fn from_raw_parts(ptr: *mut T, len: usize) -> Self

Implementors§