[][src]Struct luminance_front::buffer::BufferSlice

pub struct BufferSlice<'a, B, T> where
    B: BufferSlice<T> + ?Sized,
    T: Copy
{ /* fields omitted */ }

A buffer slice, allowing to get &[T].

Implementations

impl<'a, B, T> BufferSlice<'a, B, T> where
    B: BufferSlice<T> + ?Sized,
    T: Copy
[src]

pub fn as_slice(&self) -> Result<&[T], BufferError>[src]

Obtain a &[T].

Errors

It is possible that obtaining a slice is not possible. In that case, BufferError::MapFailed is returned.

Trait Implementations

impl<'a, B, T> Debug for BufferSlice<'a, B, T> where
    B: Debug + BufferSlice<T> + ?Sized,
    T: Debug + Copy,
    <B as BufferSlice<T>>::SliceRepr: Debug
[src]

Auto Trait Implementations

impl<'a, B: ?Sized, T> RefUnwindSafe for BufferSlice<'a, B, T> where
    <B as BufferSlice<T>>::SliceRepr: RefUnwindSafe

impl<'a, B: ?Sized, T> Send for BufferSlice<'a, B, T> where
    <B as BufferSlice<T>>::SliceRepr: Send

impl<'a, B: ?Sized, T> Sync for BufferSlice<'a, B, T> where
    <B as BufferSlice<T>>::SliceRepr: Sync

impl<'a, B: ?Sized, T> Unpin for BufferSlice<'a, B, T> where
    <B as BufferSlice<T>>::SliceRepr: Unpin

impl<'a, B, T> !UnwindSafe for BufferSlice<'a, B, T>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<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.