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§
Sourcefn plane_count(&self) -> usize
fn plane_count(&self) -> usize
Number of planes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".