pub struct VideoFrame<'a> {
pub width: usize,
pub height: usize,
pub pitch: usize,
pub format: PixelFormat,
pub frame_number: u64,
pub pixels: &'a [u8],
}Fields§
§width: usize§height: usize§pitch: usize§format: PixelFormat§frame_number: u64§pixels: &'a [u8]Trait Implementations§
Source§impl<'a> Clone for VideoFrame<'a>
impl<'a> Clone for VideoFrame<'a>
Source§fn clone(&self) -> VideoFrame<'a>
fn clone(&self) -> VideoFrame<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for VideoFrame<'a>
Source§impl<'a> Debug for VideoFrame<'a>
impl<'a> Debug for VideoFrame<'a>
impl<'a> Eq for VideoFrame<'a>
Source§impl<'a> PartialEq for VideoFrame<'a>
impl<'a> PartialEq for VideoFrame<'a>
Source§fn eq(&self, other: &VideoFrame<'a>) -> bool
fn eq(&self, other: &VideoFrame<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for VideoFrame<'a>
Auto Trait Implementations§
impl<'a> Freeze for VideoFrame<'a>
impl<'a> RefUnwindSafe for VideoFrame<'a>
impl<'a> Send for VideoFrame<'a>
impl<'a> Sync for VideoFrame<'a>
impl<'a> Unpin for VideoFrame<'a>
impl<'a> UnsafeUnpin for VideoFrame<'a>
impl<'a> UnwindSafe for VideoFrame<'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