Skip to main content

MappedPlanes

Trait MappedPlanes 

Source
pub trait MappedPlanes {
    // Required methods
    fn plane_count(&self) -> usize;
    fn plane(&self, index: usize) -> Option<PlaneView<'_>>;
}
Expand description

A picture’s planes, mapped. Views borrow the mapping, which borrows the picture, so storage stays put while it is read (rav1d-safe: “a mapped plane owns a borrow guard”).

Required Methods§

Source

fn plane_count(&self) -> usize

Number of planes.

Source

fn plane(&self, index: usize) -> Option<PlaneView<'_>>

Plane index.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§