pub struct FrameHeader {
pub width: u32,
pub height: u32,
pub len: u32,
}Expand description
Parsed w:u32 h:u32 len:u32 little-endian frame header.
Fields§
§width: u32Frame width in pixels.
height: u32Frame height in pixels.
len: u32Payload length in bytes.
Implementations§
Source§impl FrameHeader
impl FrameHeader
Sourcepub fn parse(buf: &[u8; 12]) -> FrameHeader
pub fn parse(buf: &[u8; 12]) -> FrameHeader
Parse a 12-byte little-endian w/h/len header.
Trait Implementations§
Source§impl Clone for FrameHeader
impl Clone for FrameHeader
Source§fn clone(&self) -> FrameHeader
fn clone(&self) -> FrameHeader
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 Copy for FrameHeader
Source§impl Debug for FrameHeader
impl Debug for FrameHeader
impl Eq for FrameHeader
Source§impl PartialEq for FrameHeader
impl PartialEq for FrameHeader
impl StructuralPartialEq for FrameHeader
Auto Trait Implementations§
impl Freeze for FrameHeader
impl RefUnwindSafe for FrameHeader
impl Send for FrameHeader
impl Sync for FrameHeader
impl Unpin for FrameHeader
impl UnsafeUnpin for FrameHeader
impl UnwindSafe for FrameHeader
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