[][src]Struct glk::gidispatch::RetainedBuffer

pub struct RetainedBuffer<T> { /* fields omitted */ }

A Glk retained buffer. When dropped it will be returned to the Glk client.

Methods

impl<T> RetainedBuffer<T>[src]

pub fn new(
    array: *mut T,
    len: usize,
    rock: rock,
    typecode: &'static [u8],
    unregi: Option<RetainedUnregiFunc>
) -> Self
[src]

pub fn as_slice(&self) -> &[T][src]

Return the buffer as a slice of T.

pub fn as_mut_slice(&mut self) -> &mut [T][src]

Return the buffer as a mutable slice of T.

Trait Implementations

impl<T> Drop for RetainedBuffer<T>[src]

impl<T> Deref for RetainedBuffer<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for RetainedBuffer<T>[src]

Auto Trait Implementations

impl<T> !Send for RetainedBuffer<T>

impl<T> !Sync for RetainedBuffer<T>

impl<T> Unpin for RetainedBuffer<T>

impl<T> UnwindSafe for RetainedBuffer<T> where
    T: RefUnwindSafe

impl<T> RefUnwindSafe for RetainedBuffer<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]