#[non_exhaustive]pub enum DctTransformError {
Grid(DctGridError),
InvalidSamplePlaneDimensions {
width: usize,
height: usize,
},
SamplePlaneLengthMismatch {
sample_count: usize,
width: usize,
height: usize,
},
SymbolicWeightIndexOutOfRange {
sample_len: usize,
output_index: usize,
high_pass: bool,
},
MemoryCapExceeded {
requested: usize,
cap: usize,
},
HostAllocationFailed {
bytes: usize,
},
}Expand description
Error returned when a DCT-grid transform cannot be executed safely.
Grid metadata failures remain available as Self::Grid. Allocation
failures are reported separately so callers do not have to infer memory
pressure from fabricated grid dimensions.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Grid(DctGridError)
DCT block-grid metadata does not cover the requested sample plane.
InvalidSamplePlaneDimensions
A caller-provided sample plane has a zero width or height.
SamplePlaneLengthMismatch
A caller-provided sample plane does not match its declared dimensions.
Fields
SymbolicWeightIndexOutOfRange
An internal symbolic-row request fell outside its derived band extent.
Fields
MemoryCapExceeded
Aggregate simultaneously-live transform workspace exceeds the host cap.
HostAllocationFailed
The host allocator could not reserve the requested transform storage.
Trait Implementations§
Source§impl Clone for DctTransformError
impl Clone for DctTransformError
Source§fn clone(&self) -> DctTransformError
fn clone(&self) -> DctTransformError
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 DctTransformError
impl Debug for DctTransformError
Source§impl Display for DctTransformError
impl Display for DctTransformError
impl Eq for DctTransformError
Source§impl Error for DctTransformError
impl Error for DctTransformError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<DctGridError> for DctTransformError
impl From<DctGridError> for DctTransformError
Source§fn from(value: DctGridError) -> Self
fn from(value: DctGridError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DctTransformError
impl PartialEq for DctTransformError
impl StructuralPartialEq for DctTransformError
Auto Trait Implementations§
impl Freeze for DctTransformError
impl RefUnwindSafe for DctTransformError
impl Send for DctTransformError
impl Sync for DctTransformError
impl Unpin for DctTransformError
impl UnsafeUnpin for DctTransformError
impl UnwindSafe for DctTransformError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more