Skip to main content

BufferItemCount

Trait BufferItemCount 

Source
pub trait BufferItemCount {
    // Required method
    fn item_count(&self) -> usize;
}
Expand description

Trait for types which have a certain number of items

Required Methods§

Source

fn item_count(&self) -> usize

The number of items

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BufferItemCount for ImageSize

Source§

impl BufferItemCount for usize

Implementors§