pub struct PlaneBuffer {
pub bytes: Vec<u8>,
pub stride: usize,
pub width: u32,
pub height: u32,
}Expand description
One plane of a rendered picture.
Fields§
§bytes: Vec<u8>The rows, stride bytes apart.
stride: usizeBytes between rows.
width: u32Width in samples.
height: u32Height in rows.
Trait Implementations§
Source§impl Clone for PlaneBuffer
impl Clone for PlaneBuffer
Source§impl Debug for PlaneBuffer
impl Debug for PlaneBuffer
Auto Trait Implementations§
impl Forget for PlaneBuffer
impl Freeze for PlaneBuffer
impl Move for PlaneBuffer
impl RefUnwindSafe for PlaneBuffer
impl Send for PlaneBuffer
impl Sync for PlaneBuffer
impl Unpin for PlaneBuffer
impl UnsafeUnpin for PlaneBuffer
impl UnwindSafe for PlaneBuffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more