pub enum ConversionKind {
Lossless,
Lossy,
Bridge,
Reinterpret,
Package,
Extract,
Reencode,
}Expand description
An adapter-declared description of a conversion’s semantics.
These labels drive policy filtering; they are not verified by the planner.
Policy::allow_lossy gates ConversionKind::Lossy; the other kinds have
their own gates or default open.
Variants§
Lossless
Preserves the content represented by the operation, as declared by its adapter.
Lossy
May discard quality, structure, or metadata during conversion.
Bridge
Expresses content in a different semantic representation.
Reinterpret
Interprets input bytes as another format, possibly validating them.
Package
Packages files without converting their contents.
Extract
Extracts content from an archive or compressed stream.
Reencode
Re-encodes content within the same format representation.
A Reencode step starts and ends on the same format ID: recompression,
codec change inside a container, or normalization. It is planned only
when Policy::reencode_same_format or the engine’s reencode request
opens same-format searching, and it always declares the properties it
genuinely keeps.
Trait Implementations§
Source§impl Clone for ConversionKind
impl Clone for ConversionKind
Source§fn clone(&self) -> ConversionKind
fn clone(&self) -> ConversionKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConversionKind
Source§impl Debug for ConversionKind
impl Debug for ConversionKind
impl Eq for ConversionKind
Source§impl Hash for ConversionKind
impl Hash for ConversionKind
Source§impl Ord for ConversionKind
impl Ord for ConversionKind
Source§fn cmp(&self, other: &ConversionKind) -> Ordering
fn cmp(&self, other: &ConversionKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConversionKind
impl PartialEq for ConversionKind
Source§impl PartialOrd for ConversionKind
impl PartialOrd for ConversionKind
impl StructuralPartialEq for ConversionKind
Auto Trait Implementations§
impl Forget for ConversionKind
impl Freeze for ConversionKind
impl RefUnwindSafe for ConversionKind
impl Send for ConversionKind
impl Sync for ConversionKind
impl Unpin for ConversionKind
impl UnsafeUnpin for ConversionKind
impl UnwindSafe for ConversionKind
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
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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
key and return true if they are equal.