Enum imagequant_sys::liq_error
source · [−]#[repr(C)]
pub enum liq_error {
LIQ_OK,
QualityTooLow,
ValueOutOfRange,
OutOfMemory,
Aborted,
InternalError,
BufferTooSmall,
InvalidPointer,
Unsupported,
}
Expand description
Error codes
Variants
LIQ_OK
Not an error. Exists for back-compat with the C API
QualityTooLow
set_quality()
was used with a minimum quality, and the minimum could not be achieved
ValueOutOfRange
Function called with invalid arguments
OutOfMemory
Either the system/process really hit a limit, or some data like image size was ridiculously wrong. Could be a bug too
Aborted
Progress callback said to stop
InternalError
Some terrible inconsistency happened
BufferTooSmall
Slice needs to be bigger, or width/height needs to be smaller
InvalidPointer
NULL pointer or use-after-free in the C API
Unsupported
Congratulations, you’ve discovered an edge case
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Error
impl UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more