pub trait Buffer {
// Required methods
fn size(&self) -> Size<i32, BufferCoords>;
fn format(&self) -> Format;
// Provided methods
fn width(&self) -> u32 { ... }
fn height(&self) -> u32 { ... }
}Expand description
Common trait describing common properties of most types of buffers.
Required Methods§
Sourcefn size(&self) -> Size<i32, BufferCoords>
fn size(&self) -> Size<i32, BufferCoords>
Size of the two-dimensional buffer