pub struct FrameView<'a> {
pub width: u32,
pub height: u32,
pub stride: usize,
pub format: PixelFormat,
pub data: &'a [u8],
}Expand description
Re-export facade types commonly used by host binaries. Borrowed view of one host frame (pixels stay with the host).
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
stride: usizeRow stride in bytes.
format: PixelFormatPixel format.
data: &'a [u8]Contiguous or strided pixel bytes.
Implementations§
Trait Implementations§
impl<'a> Copy for FrameView<'a>
impl<'a> Eq for FrameView<'a>
impl<'a> StructuralPartialEq for FrameView<'a>
Auto Trait Implementations§
impl<'a> Freeze for FrameView<'a>
impl<'a> RefUnwindSafe for FrameView<'a>
impl<'a> Send for FrameView<'a>
impl<'a> Sync for FrameView<'a>
impl<'a> Unpin for FrameView<'a>
impl<'a> UnsafeUnpin for FrameView<'a>
impl<'a> UnwindSafe for FrameView<'a>
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