pub struct UnsupportedPixelFormat { /* private fields */ }Expand description
Payload for ConvertError::UnsupportedPixelFormat.
The frame’s pixel format isn’t in the closed CPU-format set this crate supports for safe per-plane access.
Implementations§
Source§impl UnsupportedPixelFormat
impl UnsupportedPixelFormat
Sourcepub const fn new(format: PixelFormat, raw: i32, name: Option<SmolStr>) -> Self
pub const fn new(format: PixelFormat, raw: i32, name: Option<SmolStr>) -> Self
Constructs an UnsupportedPixelFormat payload.
Sourcepub const fn format(&self) -> &PixelFormat
pub const fn format(&self) -> &PixelFormat
The unified vocabulary’s answer for Self::raw.
PixelFormat::None whenever the raw integer has no mapping — a
hardware surface, a Bayer mosaic, a format FFmpeg gained after
this build. That is a value, not a failed lookup, and it is
deliberately not made to carry the integer: Self::raw and
Self::name are where the identity survives.
Trait Implementations§
Source§impl Clone for UnsupportedPixelFormat
impl Clone for UnsupportedPixelFormat
Source§fn clone(&self) -> UnsupportedPixelFormat
fn clone(&self) -> UnsupportedPixelFormat
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 moreSource§impl Debug for UnsupportedPixelFormat
impl Debug for UnsupportedPixelFormat
Auto Trait Implementations§
impl Freeze for UnsupportedPixelFormat
impl RefUnwindSafe for UnsupportedPixelFormat
impl Send for UnsupportedPixelFormat
impl Sync for UnsupportedPixelFormat
impl Unpin for UnsupportedPixelFormat
impl UnsafeUnpin for UnsupportedPixelFormat
impl UnwindSafe for UnsupportedPixelFormat
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