Trait web_glitz::buffer::BufferSliceIndex[][src]

pub trait BufferSliceIndex<T>: Sized {
    type Output: ?Sized;
    fn get(self, buffer: &Buffer<[T]>) -> Option<BufferView<'_, Self::Output>>;
unsafe fn get_unchecked(
        self,
        buffer: &Buffer<[T]>
    ) -> BufferView<'_, Self::Output>; fn get_mut(
        self,
        buffer: &mut Buffer<[T]>
    ) -> Option<BufferViewMut<'_, Self::Output>> { ... }
unsafe fn get_unchecked_mut(
        self,
        buffer: &mut Buffer<[T]>
    ) -> BufferViewMut<'_, Self::Output> { ... } }
Expand description

A helper trait type for indexing operations on a Buffer that contains a slice.

Associated Types

The output type returned by the indexing operations.

Required methods

Returns a view on the output for this operation if in bounds, or None otherwise.

Returns a view on the output for this operation, without performing any bounds checking.

Provided methods

Returns a mutable view on the output for this operation if in bounds, or None otherwise.

Returns a mutable view the output for this operation, without performing any bounds checking.

Implementations on Foreign Types

Implementors