Enum WaveletError
pub enum WaveletError {
InvalidLength {
expected: usize,
actual: usize,
context: String,
},
SignalTooShort {
minimum: usize,
actual: usize,
operation: String,
},
InvalidParameter {
parameter: String,
value: String,
reason: String,
},
AllocationError {
size: usize,
alignment: usize,
context: String,
},
TransformError {
transform_type: String,
reason: String,
},
IoError {
path: Option<String>,
operation: String,
reason: String,
},
InvalidDecompositionLevel {
requested: usize,
maximum: usize,
},
BoundaryError {
mode: String,
reason: String,
},
ReconstructionError {
reason: String,
},
NumericError {
operation: String,
detail: String,
},
Generic {
message: String,
context: Option<String>,
},
}Variants§
InvalidLength
SignalTooShort
InvalidParameter
AllocationError
TransformError
IoError
InvalidDecompositionLevel
BoundaryError
ReconstructionError
NumericError
Generic
Implementations§
§impl WaveletError
impl WaveletError
pub fn invalid_length(
expected: usize,
actual: usize,
context: impl Into<String>,
) -> Self
pub fn invalid_length( expected: usize, actual: usize, context: impl Into<String>, ) -> Self
pub fn signal_too_short(
minimum: usize,
actual: usize,
operation: impl Into<String>,
) -> Self
pub fn signal_too_short( minimum: usize, actual: usize, operation: impl Into<String>, ) -> Self
pub fn invalid_parameter(
parameter: impl Into<String>,
value: impl Display,
reason: impl Into<String>,
) -> Self
pub fn invalid_parameter( parameter: impl Into<String>, value: impl Display, reason: impl Into<String>, ) -> Self
pub fn allocation_error(
size: usize,
alignment: usize,
context: impl Into<String>,
) -> Self
pub fn allocation_error( size: usize, alignment: usize, context: impl Into<String>, ) -> Self
pub fn transform_error(
transform_type: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn transform_error( transform_type: impl Into<String>, reason: impl Into<String>, ) -> Self
pub fn io_error_with_path(
path: impl Into<String>,
operation: impl Into<String>,
reason: impl Into<String>,
) -> Self
pub fn io_error_with_path( path: impl Into<String>, operation: impl Into<String>, reason: impl Into<String>, ) -> Self
pub fn generic_with_context(
message: impl Into<String>,
context: impl Into<String>,
) -> Self
pub fn generic_with_context( message: impl Into<String>, context: impl Into<String>, ) -> Self
pub fn with_context(self, context: impl Into<String>) -> Self
pub fn with_context(self, context: impl Into<String>) -> Self
Trait Implementations§
§impl Clone for WaveletError
impl Clone for WaveletError
§fn clone(&self) -> WaveletError
fn clone(&self) -> WaveletError
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl Error for WaveletError
impl Error for WaveletError
Auto Trait Implementations§
impl Freeze for WaveletError
impl RefUnwindSafe for WaveletError
impl Send for WaveletError
impl Sync for WaveletError
impl Unpin for WaveletError
impl UnwindSafe for WaveletError
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)