#[non_exhaustive]pub enum ConvertError {
Show 13 variants
NullFrame,
TooManyPixels(TooManyPixels),
FrameTooLarge(FrameTooLarge),
InvalidSampleCount(InvalidSampleCount),
InvalidDimensions(InvalidDimensions),
ImageSideDataTooLarge(ImageSideDataTooLarge),
ImageSideDataEntries(ImageSideDataEntries),
UnsupportedSampleFormat(UnsupportedSampleFormat),
UnsupportedChannelCount(UnsupportedChannelCount),
UnsupportedPixelFormat(UnsupportedPixelFormat),
InvalidPlaneLayout(InvalidPlaneLayout),
BufferAcquireFailed(BufferAcquireFailed),
CarrierAllocFailed(CarrierAllocFailed),
}Expand description
Errors from av_frame_to_video_frame.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NullFrame
av_frame was null.
TooManyPixels(TooManyPixels)
The frame declares more pixels than the ceiling allows. Refused before any plane is allocated.
FrameTooLarge(FrameTooLarge)
The frame’s planes would export more bytes than the ceiling allows. Refused before any plane is allocated.
InvalidSampleCount(InvalidSampleCount)
An audio frame declares a negative sample count.
InvalidDimensions(InvalidDimensions)
A picture frame declares a negative width or height.
ImageSideDataTooLarge(ImageSideDataTooLarge)
A decoded still’s side data is larger than the ceiling allows.
ImageSideDataEntries(ImageSideDataEntries)
A decoded still declares more side-data entries than this crate will walk.
UnsupportedSampleFormat(UnsupportedSampleFormat)
An audio frame’s sample format has no byte width.
UnsupportedChannelCount(UnsupportedChannelCount)
An audio frame’s channel count is one this crate will not carry.
UnsupportedPixelFormat(UnsupportedPixelFormat)
The frame’s pixel format isn’t in the closed CPU-format set this crate supports for safe per-plane access.
InvalidPlaneLayout(InvalidPlaneLayout)
A plane reported linesize <= 0 or otherwise inconsistent layout.
BufferAcquireFailed(BufferAcquireFailed)
A plane’s data[i] does not lie inside any of the frame’s own
buf[] allocations, so its extent cannot be proved.
CarrierAllocFailed(CarrierAllocFailed)
The plane’s extent was proved and the carrier still could not be
made. See CarrierAllocFailed.
Implementations§
Source§impl ConvertError
impl ConvertError
Sourcepub const fn is_null_frame(&self) -> bool
pub const fn is_null_frame(&self) -> bool
Returns true if this value is of type NullFrame. Returns false otherwise
Sourcepub const fn is_too_many_pixels(&self) -> bool
pub const fn is_too_many_pixels(&self) -> bool
Returns true if this value is of type TooManyPixels. Returns false otherwise
Sourcepub const fn is_frame_too_large(&self) -> bool
pub const fn is_frame_too_large(&self) -> bool
Returns true if this value is of type FrameTooLarge. Returns false otherwise
Sourcepub const fn is_invalid_sample_count(&self) -> bool
pub const fn is_invalid_sample_count(&self) -> bool
Returns true if this value is of type InvalidSampleCount. Returns false otherwise
Sourcepub const fn is_invalid_dimensions(&self) -> bool
pub const fn is_invalid_dimensions(&self) -> bool
Returns true if this value is of type InvalidDimensions. Returns false otherwise
Sourcepub const fn is_image_side_data_too_large(&self) -> bool
pub const fn is_image_side_data_too_large(&self) -> bool
Returns true if this value is of type ImageSideDataTooLarge. Returns false otherwise
Sourcepub const fn is_image_side_data_entries(&self) -> bool
pub const fn is_image_side_data_entries(&self) -> bool
Returns true if this value is of type ImageSideDataEntries. Returns false otherwise
Sourcepub const fn is_unsupported_sample_format(&self) -> bool
pub const fn is_unsupported_sample_format(&self) -> bool
Returns true if this value is of type UnsupportedSampleFormat. Returns false otherwise
Sourcepub const fn is_unsupported_channel_count(&self) -> bool
pub const fn is_unsupported_channel_count(&self) -> bool
Returns true if this value is of type UnsupportedChannelCount. Returns false otherwise
Sourcepub const fn is_unsupported_pixel_format(&self) -> bool
pub const fn is_unsupported_pixel_format(&self) -> bool
Returns true if this value is of type UnsupportedPixelFormat. Returns false otherwise
Sourcepub const fn is_invalid_plane_layout(&self) -> bool
pub const fn is_invalid_plane_layout(&self) -> bool
Returns true if this value is of type InvalidPlaneLayout. Returns false otherwise
Sourcepub const fn is_buffer_acquire_failed(&self) -> bool
pub const fn is_buffer_acquire_failed(&self) -> bool
Returns true if this value is of type BufferAcquireFailed. Returns false otherwise
Sourcepub const fn is_carrier_alloc_failed(&self) -> bool
pub const fn is_carrier_alloc_failed(&self) -> bool
Returns true if this value is of type CarrierAllocFailed. Returns false otherwise
Source§impl ConvertError
impl ConvertError
Sourcepub fn unwrap_null_frame(self)
pub fn unwrap_null_frame(self)
Unwraps this value to the ConvertError::NullFrame variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_null_frame_ref(&self)
pub fn unwrap_null_frame_ref(&self)
Unwraps this reference to the ConvertError::NullFrame variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_null_frame_mut(&mut self)
pub fn unwrap_null_frame_mut(&mut self)
Unwraps this mutable reference to the ConvertError::NullFrame variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_pixels(self) -> TooManyPixels
pub fn unwrap_too_many_pixels(self) -> TooManyPixels
Unwraps this value to the ConvertError::TooManyPixels variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_pixels_ref(&self) -> &TooManyPixels
pub fn unwrap_too_many_pixels_ref(&self) -> &TooManyPixels
Unwraps this reference to the ConvertError::TooManyPixels variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_too_many_pixels_mut(&mut self) -> &mut TooManyPixels
pub fn unwrap_too_many_pixels_mut(&mut self) -> &mut TooManyPixels
Unwraps this mutable reference to the ConvertError::TooManyPixels variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_frame_too_large(self) -> FrameTooLarge
pub fn unwrap_frame_too_large(self) -> FrameTooLarge
Unwraps this value to the ConvertError::FrameTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_frame_too_large_ref(&self) -> &FrameTooLarge
pub fn unwrap_frame_too_large_ref(&self) -> &FrameTooLarge
Unwraps this reference to the ConvertError::FrameTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_frame_too_large_mut(&mut self) -> &mut FrameTooLarge
pub fn unwrap_frame_too_large_mut(&mut self) -> &mut FrameTooLarge
Unwraps this mutable reference to the ConvertError::FrameTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_sample_count(self) -> InvalidSampleCount
pub fn unwrap_invalid_sample_count(self) -> InvalidSampleCount
Unwraps this value to the ConvertError::InvalidSampleCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_sample_count_ref(&self) -> &InvalidSampleCount
pub fn unwrap_invalid_sample_count_ref(&self) -> &InvalidSampleCount
Unwraps this reference to the ConvertError::InvalidSampleCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_sample_count_mut(&mut self) -> &mut InvalidSampleCount
pub fn unwrap_invalid_sample_count_mut(&mut self) -> &mut InvalidSampleCount
Unwraps this mutable reference to the ConvertError::InvalidSampleCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_dimensions(self) -> InvalidDimensions
pub fn unwrap_invalid_dimensions(self) -> InvalidDimensions
Unwraps this value to the ConvertError::InvalidDimensions variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_dimensions_ref(&self) -> &InvalidDimensions
pub fn unwrap_invalid_dimensions_ref(&self) -> &InvalidDimensions
Unwraps this reference to the ConvertError::InvalidDimensions variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_dimensions_mut(&mut self) -> &mut InvalidDimensions
pub fn unwrap_invalid_dimensions_mut(&mut self) -> &mut InvalidDimensions
Unwraps this mutable reference to the ConvertError::InvalidDimensions variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_too_large(self) -> ImageSideDataTooLarge
pub fn unwrap_image_side_data_too_large(self) -> ImageSideDataTooLarge
Unwraps this value to the ConvertError::ImageSideDataTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_too_large_ref(&self) -> &ImageSideDataTooLarge
pub fn unwrap_image_side_data_too_large_ref(&self) -> &ImageSideDataTooLarge
Unwraps this reference to the ConvertError::ImageSideDataTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_too_large_mut(
&mut self,
) -> &mut ImageSideDataTooLarge
pub fn unwrap_image_side_data_too_large_mut( &mut self, ) -> &mut ImageSideDataTooLarge
Unwraps this mutable reference to the ConvertError::ImageSideDataTooLarge variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_entries(self) -> ImageSideDataEntries
pub fn unwrap_image_side_data_entries(self) -> ImageSideDataEntries
Unwraps this value to the ConvertError::ImageSideDataEntries variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_entries_ref(&self) -> &ImageSideDataEntries
pub fn unwrap_image_side_data_entries_ref(&self) -> &ImageSideDataEntries
Unwraps this reference to the ConvertError::ImageSideDataEntries variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_image_side_data_entries_mut(
&mut self,
) -> &mut ImageSideDataEntries
pub fn unwrap_image_side_data_entries_mut( &mut self, ) -> &mut ImageSideDataEntries
Unwraps this mutable reference to the ConvertError::ImageSideDataEntries variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_sample_format(self) -> UnsupportedSampleFormat
pub fn unwrap_unsupported_sample_format(self) -> UnsupportedSampleFormat
Unwraps this value to the ConvertError::UnsupportedSampleFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_sample_format_ref(&self) -> &UnsupportedSampleFormat
pub fn unwrap_unsupported_sample_format_ref(&self) -> &UnsupportedSampleFormat
Unwraps this reference to the ConvertError::UnsupportedSampleFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_sample_format_mut(
&mut self,
) -> &mut UnsupportedSampleFormat
pub fn unwrap_unsupported_sample_format_mut( &mut self, ) -> &mut UnsupportedSampleFormat
Unwraps this mutable reference to the ConvertError::UnsupportedSampleFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_channel_count(self) -> UnsupportedChannelCount
pub fn unwrap_unsupported_channel_count(self) -> UnsupportedChannelCount
Unwraps this value to the ConvertError::UnsupportedChannelCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_channel_count_ref(&self) -> &UnsupportedChannelCount
pub fn unwrap_unsupported_channel_count_ref(&self) -> &UnsupportedChannelCount
Unwraps this reference to the ConvertError::UnsupportedChannelCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_channel_count_mut(
&mut self,
) -> &mut UnsupportedChannelCount
pub fn unwrap_unsupported_channel_count_mut( &mut self, ) -> &mut UnsupportedChannelCount
Unwraps this mutable reference to the ConvertError::UnsupportedChannelCount variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_pixel_format(self) -> UnsupportedPixelFormat
pub fn unwrap_unsupported_pixel_format(self) -> UnsupportedPixelFormat
Unwraps this value to the ConvertError::UnsupportedPixelFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_pixel_format_ref(&self) -> &UnsupportedPixelFormat
pub fn unwrap_unsupported_pixel_format_ref(&self) -> &UnsupportedPixelFormat
Unwraps this reference to the ConvertError::UnsupportedPixelFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_unsupported_pixel_format_mut(
&mut self,
) -> &mut UnsupportedPixelFormat
pub fn unwrap_unsupported_pixel_format_mut( &mut self, ) -> &mut UnsupportedPixelFormat
Unwraps this mutable reference to the ConvertError::UnsupportedPixelFormat variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_plane_layout(self) -> InvalidPlaneLayout
pub fn unwrap_invalid_plane_layout(self) -> InvalidPlaneLayout
Unwraps this value to the ConvertError::InvalidPlaneLayout variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_plane_layout_ref(&self) -> &InvalidPlaneLayout
pub fn unwrap_invalid_plane_layout_ref(&self) -> &InvalidPlaneLayout
Unwraps this reference to the ConvertError::InvalidPlaneLayout variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_invalid_plane_layout_mut(&mut self) -> &mut InvalidPlaneLayout
pub fn unwrap_invalid_plane_layout_mut(&mut self) -> &mut InvalidPlaneLayout
Unwraps this mutable reference to the ConvertError::InvalidPlaneLayout variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_buffer_acquire_failed(self) -> BufferAcquireFailed
pub fn unwrap_buffer_acquire_failed(self) -> BufferAcquireFailed
Unwraps this value to the ConvertError::BufferAcquireFailed variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_buffer_acquire_failed_ref(&self) -> &BufferAcquireFailed
pub fn unwrap_buffer_acquire_failed_ref(&self) -> &BufferAcquireFailed
Unwraps this reference to the ConvertError::BufferAcquireFailed variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_buffer_acquire_failed_mut(&mut self) -> &mut BufferAcquireFailed
pub fn unwrap_buffer_acquire_failed_mut(&mut self) -> &mut BufferAcquireFailed
Unwraps this mutable reference to the ConvertError::BufferAcquireFailed variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_carrier_alloc_failed(self) -> CarrierAllocFailed
pub fn unwrap_carrier_alloc_failed(self) -> CarrierAllocFailed
Unwraps this value to the ConvertError::CarrierAllocFailed variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_carrier_alloc_failed_ref(&self) -> &CarrierAllocFailed
pub fn unwrap_carrier_alloc_failed_ref(&self) -> &CarrierAllocFailed
Unwraps this reference to the ConvertError::CarrierAllocFailed variant.
Panics if this value is of any other type.
Sourcepub fn unwrap_carrier_alloc_failed_mut(&mut self) -> &mut CarrierAllocFailed
pub fn unwrap_carrier_alloc_failed_mut(&mut self) -> &mut CarrierAllocFailed
Unwraps this mutable reference to the ConvertError::CarrierAllocFailed variant.
Panics if this value is of any other type.
Source§impl ConvertError
impl ConvertError
Sourcepub fn try_unwrap_null_frame(self) -> Result<(), TryUnwrapError<Self>>
pub fn try_unwrap_null_frame(self) -> Result<(), TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::NullFrame variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_null_frame_ref(&self) -> Result<(), TryUnwrapError<&Self>>
pub fn try_unwrap_null_frame_ref(&self) -> Result<(), TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::NullFrame variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_null_frame_mut(
&mut self,
) -> Result<(), TryUnwrapError<&mut Self>>
pub fn try_unwrap_null_frame_mut( &mut self, ) -> Result<(), TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::NullFrame variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_pixels(
self,
) -> Result<TooManyPixels, TryUnwrapError<Self>>
pub fn try_unwrap_too_many_pixels( self, ) -> Result<TooManyPixels, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::TooManyPixels variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_pixels_ref(
&self,
) -> Result<&TooManyPixels, TryUnwrapError<&Self>>
pub fn try_unwrap_too_many_pixels_ref( &self, ) -> Result<&TooManyPixels, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::TooManyPixels variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_too_many_pixels_mut(
&mut self,
) -> Result<&mut TooManyPixels, TryUnwrapError<&mut Self>>
pub fn try_unwrap_too_many_pixels_mut( &mut self, ) -> Result<&mut TooManyPixels, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::TooManyPixels variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_frame_too_large(
self,
) -> Result<FrameTooLarge, TryUnwrapError<Self>>
pub fn try_unwrap_frame_too_large( self, ) -> Result<FrameTooLarge, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::FrameTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_frame_too_large_ref(
&self,
) -> Result<&FrameTooLarge, TryUnwrapError<&Self>>
pub fn try_unwrap_frame_too_large_ref( &self, ) -> Result<&FrameTooLarge, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::FrameTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_frame_too_large_mut(
&mut self,
) -> Result<&mut FrameTooLarge, TryUnwrapError<&mut Self>>
pub fn try_unwrap_frame_too_large_mut( &mut self, ) -> Result<&mut FrameTooLarge, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::FrameTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_sample_count(
self,
) -> Result<InvalidSampleCount, TryUnwrapError<Self>>
pub fn try_unwrap_invalid_sample_count( self, ) -> Result<InvalidSampleCount, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::InvalidSampleCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_sample_count_ref(
&self,
) -> Result<&InvalidSampleCount, TryUnwrapError<&Self>>
pub fn try_unwrap_invalid_sample_count_ref( &self, ) -> Result<&InvalidSampleCount, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::InvalidSampleCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_sample_count_mut(
&mut self,
) -> Result<&mut InvalidSampleCount, TryUnwrapError<&mut Self>>
pub fn try_unwrap_invalid_sample_count_mut( &mut self, ) -> Result<&mut InvalidSampleCount, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::InvalidSampleCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_dimensions(
self,
) -> Result<InvalidDimensions, TryUnwrapError<Self>>
pub fn try_unwrap_invalid_dimensions( self, ) -> Result<InvalidDimensions, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::InvalidDimensions variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_dimensions_ref(
&self,
) -> Result<&InvalidDimensions, TryUnwrapError<&Self>>
pub fn try_unwrap_invalid_dimensions_ref( &self, ) -> Result<&InvalidDimensions, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::InvalidDimensions variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_dimensions_mut(
&mut self,
) -> Result<&mut InvalidDimensions, TryUnwrapError<&mut Self>>
pub fn try_unwrap_invalid_dimensions_mut( &mut self, ) -> Result<&mut InvalidDimensions, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::InvalidDimensions variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_too_large(
self,
) -> Result<ImageSideDataTooLarge, TryUnwrapError<Self>>
pub fn try_unwrap_image_side_data_too_large( self, ) -> Result<ImageSideDataTooLarge, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::ImageSideDataTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_too_large_ref(
&self,
) -> Result<&ImageSideDataTooLarge, TryUnwrapError<&Self>>
pub fn try_unwrap_image_side_data_too_large_ref( &self, ) -> Result<&ImageSideDataTooLarge, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::ImageSideDataTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_too_large_mut(
&mut self,
) -> Result<&mut ImageSideDataTooLarge, TryUnwrapError<&mut Self>>
pub fn try_unwrap_image_side_data_too_large_mut( &mut self, ) -> Result<&mut ImageSideDataTooLarge, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::ImageSideDataTooLarge variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_entries(
self,
) -> Result<ImageSideDataEntries, TryUnwrapError<Self>>
pub fn try_unwrap_image_side_data_entries( self, ) -> Result<ImageSideDataEntries, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::ImageSideDataEntries variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_entries_ref(
&self,
) -> Result<&ImageSideDataEntries, TryUnwrapError<&Self>>
pub fn try_unwrap_image_side_data_entries_ref( &self, ) -> Result<&ImageSideDataEntries, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::ImageSideDataEntries variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_image_side_data_entries_mut(
&mut self,
) -> Result<&mut ImageSideDataEntries, TryUnwrapError<&mut Self>>
pub fn try_unwrap_image_side_data_entries_mut( &mut self, ) -> Result<&mut ImageSideDataEntries, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::ImageSideDataEntries variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_sample_format(
self,
) -> Result<UnsupportedSampleFormat, TryUnwrapError<Self>>
pub fn try_unwrap_unsupported_sample_format( self, ) -> Result<UnsupportedSampleFormat, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::UnsupportedSampleFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_sample_format_ref(
&self,
) -> Result<&UnsupportedSampleFormat, TryUnwrapError<&Self>>
pub fn try_unwrap_unsupported_sample_format_ref( &self, ) -> Result<&UnsupportedSampleFormat, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::UnsupportedSampleFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_sample_format_mut(
&mut self,
) -> Result<&mut UnsupportedSampleFormat, TryUnwrapError<&mut Self>>
pub fn try_unwrap_unsupported_sample_format_mut( &mut self, ) -> Result<&mut UnsupportedSampleFormat, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::UnsupportedSampleFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_channel_count(
self,
) -> Result<UnsupportedChannelCount, TryUnwrapError<Self>>
pub fn try_unwrap_unsupported_channel_count( self, ) -> Result<UnsupportedChannelCount, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::UnsupportedChannelCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_channel_count_ref(
&self,
) -> Result<&UnsupportedChannelCount, TryUnwrapError<&Self>>
pub fn try_unwrap_unsupported_channel_count_ref( &self, ) -> Result<&UnsupportedChannelCount, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::UnsupportedChannelCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_channel_count_mut(
&mut self,
) -> Result<&mut UnsupportedChannelCount, TryUnwrapError<&mut Self>>
pub fn try_unwrap_unsupported_channel_count_mut( &mut self, ) -> Result<&mut UnsupportedChannelCount, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::UnsupportedChannelCount variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_pixel_format(
self,
) -> Result<UnsupportedPixelFormat, TryUnwrapError<Self>>
pub fn try_unwrap_unsupported_pixel_format( self, ) -> Result<UnsupportedPixelFormat, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::UnsupportedPixelFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_pixel_format_ref(
&self,
) -> Result<&UnsupportedPixelFormat, TryUnwrapError<&Self>>
pub fn try_unwrap_unsupported_pixel_format_ref( &self, ) -> Result<&UnsupportedPixelFormat, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::UnsupportedPixelFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_unsupported_pixel_format_mut(
&mut self,
) -> Result<&mut UnsupportedPixelFormat, TryUnwrapError<&mut Self>>
pub fn try_unwrap_unsupported_pixel_format_mut( &mut self, ) -> Result<&mut UnsupportedPixelFormat, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::UnsupportedPixelFormat variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_plane_layout(
self,
) -> Result<InvalidPlaneLayout, TryUnwrapError<Self>>
pub fn try_unwrap_invalid_plane_layout( self, ) -> Result<InvalidPlaneLayout, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::InvalidPlaneLayout variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_plane_layout_ref(
&self,
) -> Result<&InvalidPlaneLayout, TryUnwrapError<&Self>>
pub fn try_unwrap_invalid_plane_layout_ref( &self, ) -> Result<&InvalidPlaneLayout, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::InvalidPlaneLayout variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_invalid_plane_layout_mut(
&mut self,
) -> Result<&mut InvalidPlaneLayout, TryUnwrapError<&mut Self>>
pub fn try_unwrap_invalid_plane_layout_mut( &mut self, ) -> Result<&mut InvalidPlaneLayout, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::InvalidPlaneLayout variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_buffer_acquire_failed(
self,
) -> Result<BufferAcquireFailed, TryUnwrapError<Self>>
pub fn try_unwrap_buffer_acquire_failed( self, ) -> Result<BufferAcquireFailed, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::BufferAcquireFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_buffer_acquire_failed_ref(
&self,
) -> Result<&BufferAcquireFailed, TryUnwrapError<&Self>>
pub fn try_unwrap_buffer_acquire_failed_ref( &self, ) -> Result<&BufferAcquireFailed, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::BufferAcquireFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_buffer_acquire_failed_mut(
&mut self,
) -> Result<&mut BufferAcquireFailed, TryUnwrapError<&mut Self>>
pub fn try_unwrap_buffer_acquire_failed_mut( &mut self, ) -> Result<&mut BufferAcquireFailed, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::BufferAcquireFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_carrier_alloc_failed(
self,
) -> Result<CarrierAllocFailed, TryUnwrapError<Self>>
pub fn try_unwrap_carrier_alloc_failed( self, ) -> Result<CarrierAllocFailed, TryUnwrapError<Self>>
Attempts to unwrap this value to the ConvertError::CarrierAllocFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_carrier_alloc_failed_ref(
&self,
) -> Result<&CarrierAllocFailed, TryUnwrapError<&Self>>
pub fn try_unwrap_carrier_alloc_failed_ref( &self, ) -> Result<&CarrierAllocFailed, TryUnwrapError<&Self>>
Attempts to unwrap this reference to the ConvertError::CarrierAllocFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Sourcepub fn try_unwrap_carrier_alloc_failed_mut(
&mut self,
) -> Result<&mut CarrierAllocFailed, TryUnwrapError<&mut Self>>
pub fn try_unwrap_carrier_alloc_failed_mut( &mut self, ) -> Result<&mut CarrierAllocFailed, TryUnwrapError<&mut Self>>
Attempts to unwrap this mutable reference to the ConvertError::CarrierAllocFailed variant.
Returns a [TryUnwrapError] with the original value if this value is of any other type.
Trait Implementations§
Source§impl Clone for ConvertError
impl Clone for ConvertError
Source§fn clone(&self) -> ConvertError
fn clone(&self) -> ConvertError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl Display for ConvertError
impl Display for ConvertError
Source§impl Error for ConvertError
impl Error for ConvertError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()