[−][src]Struct luminance::buffer::BufferSlice
A buffer slice, allowing to get &[T]
.
Implementations
impl<'a, B: ?Sized, T> BufferSlice<'a, B, T> where
B: BufferSliceBackend<T>,
T: Copy,
[src]
B: BufferSliceBackend<T>,
T: Copy,
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: Debug + ?Sized, T: Debug> Debug for BufferSlice<'a, B, T> where
B: BufferSliceBackend<T>,
T: Copy,
B::SliceRepr: Debug,
[src]
B: BufferSliceBackend<T>,
T: Copy,
B::SliceRepr: Debug,
Auto Trait Implementations
impl<'a, B: ?Sized, T> RefUnwindSafe for BufferSlice<'a, B, T> where
<B as BufferSlice<T>>::SliceRepr: RefUnwindSafe,
<B as BufferSlice<T>>::SliceRepr: RefUnwindSafe,
impl<'a, B: ?Sized, T> Send for BufferSlice<'a, B, T> where
<B as BufferSlice<T>>::SliceRepr: Send,
<B as BufferSlice<T>>::SliceRepr: Send,
impl<'a, B: ?Sized, T> Sync for BufferSlice<'a, B, T> where
<B as BufferSlice<T>>::SliceRepr: Sync,
<B as BufferSlice<T>>::SliceRepr: Sync,
impl<'a, B: ?Sized, T> Unpin for BufferSlice<'a, B, T> where
<B as BufferSlice<T>>::SliceRepr: Unpin,
<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]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,