[][src]Struct storages::buffer::AllocatedBuffer

pub struct AllocatedBuffer<T: ?Sized, A: ?Sized = Global> { /* fields omitted */ }

Implementations

impl<T: ?Sized, A: ?Sized> AllocatedBuffer<T, A>[src]

pub unsafe fn from_raw(ptr: NonNull<T>) -> Self[src]

impl<T> AllocatedBuffer<T>[src]

pub fn new() -> Result<Self, AllocError>[src]

pub fn new_zeroed() -> Result<Self, AllocError>[src]

impl<T, A: ?Sized + AllocRef> AllocatedBuffer<T, A>[src]

pub fn new_in(allocator: &A) -> Result<Self, AllocError>[src]

pub fn new_zeroed_in(allocator: &A) -> Result<Self, AllocError>[src]

impl<T, A: ?Sized + AllocRef> AllocatedBuffer<[T], A>[src]

pub fn new_slice(allocator: &A, len: usize) -> Result<Self, AllocError>[src]

pub fn new_slice_zeroed(allocator: &A, len: usize) -> Result<Self, AllocError>[src]

Trait Implementations

impl<T, A: ?Sized + AllocRef> Buffer<[MaybeUninit<T>]> for AllocatedBuffer<[T], A>[src]

type ExternalData = A

Data required to be passed at every interaction with the buffer.

impl<T, A: ?Sized + AllocRef> Buffer<MaybeUninit<T>> for AllocatedBuffer<T, A>[src]

type ExternalData = A

Data required to be passed at every interaction with the buffer.

impl<T: ?Sized, A: ?Sized + AllocRef> Buffer<T> for AllocatedBuffer<T, A>[src]

type ExternalData = A

Data required to be passed at every interaction with the buffer.

impl<T: ?Sized + Unsize<U>, U: ?Sized, A: AllocRef> CoerceUnsized<AllocatedBuffer<U, A>> for AllocatedBuffer<T, A>[src]

impl<T: ?Sized, A: AllocRef> UnmanagedBuffer<T> for AllocatedBuffer<T, A>[src]

Auto Trait Implementations

impl<T, A = Global> !Send for AllocatedBuffer<T, A>

impl<T, A = Global> !Sync for AllocatedBuffer<T, A>

impl<T: ?Sized, A: ?Sized> Unpin for AllocatedBuffer<T, A> where
    T: Unpin

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, 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.