[][src]Trait storages::buffer::UnmanagedBuffer

pub trait UnmanagedBuffer<T: ?Sized>: Buffer<T> {
    pub unsafe fn free_unchecked(&mut self, allocator: &Self::ExternalData);

    pub fn free(self, allocator: &Self::ExternalData)
    where
        Self: Sized
, { ... } }

A buffer, which uses an external resource

Required methods

pub unsafe fn free_unchecked(&mut self, allocator: &Self::ExternalData)[src]

Frees the backed resource.

Safety

The buffer must not be used after calling this method

Loading content...

Provided methods

pub fn free(self, allocator: &Self::ExternalData) where
    Self: Sized
[src]

Frees the backed resource

Loading content...

Implementors

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

Loading content...