[][src]Trait redox_buffer_pool::AsBufferPool

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

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

fn as_buffer_pool(&self) -> &BufferPool<I, H, E>

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

Loading content...

Implementors

impl<I, H, E> AsBufferPool<I, H, E> for BufferPool<I, H, E> where
    I: Integer,
    H: Handle<I, E>,
    E: Copy
[src]

impl<T, I, H, E> AsBufferPool<I, H, E> for T where
    I: Integer,
    H: Handle<I, E>,
    E: Copy,
    T: AsRef<BufferPool<I, H, E>>, 
[src]

Loading content...