pub struct CaptureFrame {
pub width: u32,
pub height: u32,
pub rgba: Rc<[u8]>,
}Expand description
A captured frame, as a view keeps it.
Fields§
§width: u32The width in pixels.
height: u32The height in pixels.
rgba: Rc<[u8]>Premultiplied RGBA, row by row: width * height * 4 bytes. Shared,
so a renderer can tell a new frame from the one it already scaled.
Trait Implementations§
Source§impl Clone for CaptureFrame
impl Clone for CaptureFrame
Source§impl Debug for CaptureFrame
impl Debug for CaptureFrame
impl Eq for CaptureFrame
Source§impl PartialEq for CaptureFrame
impl PartialEq for CaptureFrame
impl StructuralPartialEq for CaptureFrame
Auto Trait Implementations§
impl !Send for CaptureFrame
impl !Sync for CaptureFrame
impl Forget for CaptureFrame
impl Freeze for CaptureFrame
impl Move for CaptureFrame
impl RefUnwindSafe for CaptureFrame
impl Unpin for CaptureFrame
impl UnsafeUnpin for CaptureFrame
impl UnwindSafe for CaptureFrame
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