pub enum EncodeBackendPreference {
Auto,
CpuOnly,
RequireDevice,
}Expand description
Backend preference for JPEG 2000 lossless encoding.
Variants§
Auto
Pick the fastest safe backend exposed by the caller, falling back to CPU.
CpuOnly
Require the pure Rust CPU encoder.
RequireDevice
Require a device encoder and fail if unavailable or unsupported.
Trait Implementations§
Source§impl Clone for EncodeBackendPreference
impl Clone for EncodeBackendPreference
Source§fn clone(&self) -> EncodeBackendPreference
fn clone(&self) -> EncodeBackendPreference
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 moreimpl Copy for EncodeBackendPreference
Source§impl Debug for EncodeBackendPreference
impl Debug for EncodeBackendPreference
Source§impl Default for EncodeBackendPreference
impl Default for EncodeBackendPreference
Source§fn default() -> EncodeBackendPreference
fn default() -> EncodeBackendPreference
Returns the “default value” for a type. Read more
impl Eq for EncodeBackendPreference
Source§impl Hash for EncodeBackendPreference
impl Hash for EncodeBackendPreference
Source§impl PartialEq for EncodeBackendPreference
impl PartialEq for EncodeBackendPreference
impl StructuralPartialEq for EncodeBackendPreference
Auto Trait Implementations§
impl Freeze for EncodeBackendPreference
impl RefUnwindSafe for EncodeBackendPreference
impl Send for EncodeBackendPreference
impl Sync for EncodeBackendPreference
impl Unpin for EncodeBackendPreference
impl UnsafeUnpin for EncodeBackendPreference
impl UnwindSafe for EncodeBackendPreference
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