[][src]Trait nannou::vk::buffer::TypedBufferAccess

pub unsafe trait TypedBufferAccess: BufferAccess {
    type Content: ?Sized;
    fn len(&self) -> usize
    where
        Self::Content: Content
, { ... } }

Extension trait for BufferAccess. Indicates the type of the content of the buffer.

Associated Types

type Content: ?Sized

The type of the content.

Loading content...

Provided methods

fn len(&self) -> usize where
    Self::Content: Content

Returns the length of the buffer in number of elements.

This method can only be called for buffers whose type is known to be an array.

Loading content...

Implementors

impl<T> TypedBufferAccess for T where
    T: SafeDeref,
    <T as Deref>::Target: TypedBufferAccess
[src]

type Content = <<T as Deref>::Target as TypedBufferAccess>::Content

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for ImmutableBufferInitialization<T, A> where
    T: ?Sized
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for CpuAccessibleBuffer<T, A> where
    T: 'static + Send + Sync + ?Sized
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for CpuBufferPoolChunk<T, A> where
    A: MemoryPool
[src]

type Content = [T]

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for CpuBufferPoolSubbuffer<T, A> where
    A: MemoryPool
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for DeviceLocalBuffer<T, A> where
    T: 'static + Send + Sync + ?Sized
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, A> TypedBufferAccess for ImmutableBuffer<T, A> where
    T: ?Sized
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

impl<T, B> TypedBufferAccess for BufferSlice<T, B> where
    B: BufferAccess,
    T: ?Sized
[src]

type Content = T

fn len(&self) -> usize where
    Self::Content: Content
[src]

Loading content...