#[non_exhaustive]pub enum RasterError {
InvalidDpi,
EmptyPageSelection,
PageOutOfRange {
page_index: usize,
page_count: usize,
},
DuplicatePage {
page_index: usize,
},
InvalidJpegQuality {
quality: u8,
},
InvalidDimensions,
EncodeFailed {
format: &'static str,
},
}Expand description
A reason a raster export request could not be completed.
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.
InvalidDpi
DPI was NaN, infinite, zero, or negative.
EmptyPageSelection
No page was selected.
PageOutOfRange
A selected zero-based page index does not exist.
DuplicatePage
A selected zero-based page index appears more than once.
InvalidJpegQuality
JPEG quality must be in the inclusive 1 through 100 range.
InvalidDimensions
The requested raster dimensions cannot be represented.
EncodeFailed
The rendered pixmap could not be encoded into the requested format.
Trait Implementations§
Source§impl Clone for RasterError
impl Clone for RasterError
Source§fn clone(&self) -> RasterError
fn clone(&self) -> RasterError
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 RasterError
impl Debug for RasterError
Source§impl Display for RasterError
impl Display for RasterError
impl Eq for RasterError
Source§impl Error for RasterError
impl Error for RasterError
1.30.0 · 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 PartialEq for RasterError
impl PartialEq for RasterError
impl StructuralPartialEq for RasterError
Auto Trait Implementations§
impl Freeze for RasterError
impl RefUnwindSafe for RasterError
impl Send for RasterError
impl Sync for RasterError
impl Unpin for RasterError
impl UnsafeUnpin for RasterError
impl UnwindSafe for RasterError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.