[−][src]Struct glk::gidispatch::RetainedBuffer
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]
array: *mut T,
len: usize,
rock: rock,
typecode: &'static [u8],
unregi: Option<RetainedUnregiFunc>
) -> Self
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]
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,
T: RefUnwindSafe,
impl<T> RefUnwindSafe for RetainedBuffer<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,