pub unsafe trait TypedBufferAccess: BufferAccess {
    type Content: ?Sized;

    fn len(&self) -> usize
    where
        Self::Content: Content
, { ... } }
Expand description

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

Required Associated Types

The type of the content.

Provided Methods

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.

Implementors