Trait redox_buffer_pool::AsBufferPool[][src]

pub trait AsBufferPool<I, H, E> where
    I: Integer,
    H: Handle<I, E>,
    E: Copy
{ fn as_buffer_pool(&self) -> &BufferPool<I, H, E>; }
Expand description

A trait for types that are convertible by reference, into BufferPool.

This is mainly to allow arbitrary types to be stored in smart reference-counting pointers, rather than forcing BufferPool to be the direct pointee of those pointers.

This trait is automatically implemented for all types that implement AsRef<BufferPool>, so prefer that instead.

Required methods

Get a reference to the buffer pool that must be contained within the wrapper.

Implementors