#[non_exhaustive]pub enum InteropTarget {
Tight,
Imgref,
FlatSamples,
ImageBuffer,
DynamicImage,
}Expand description
Downstream container contract for PixelBuf::new_for_interop.
Validates upfront that an PixelFormat can move into the
target container without copying or silently relabeling pixels.
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.
Tight
Tightly packed native storage (stride == width * bytes_per_pixel, offset == 0).
Imgref
Zero-copy imgref::ImgVec<P> / ImgRef<P> handoff.
FlatSamples
Zero-copy image::flat::FlatSamples<Vec<S>> handoff.
ImageBuffer
Zero-copy image::ImageBuffer<P, Vec<S>> handoff with lossless CICP color preservation.
DynamicImage
Zero-copy image::DynamicImage handoff with lossless CICP color preservation.
Trait Implementations§
Source§impl Clone for InteropTarget
impl Clone for InteropTarget
Source§fn clone(&self) -> InteropTarget
fn clone(&self) -> InteropTarget
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 InteropTarget
Source§impl Debug for InteropTarget
impl Debug for InteropTarget
Source§impl Default for InteropTarget
impl Default for InteropTarget
Source§fn default() -> InteropTarget
fn default() -> InteropTarget
Returns the “default value” for a type. Read more
impl Eq for InteropTarget
Source§impl Hash for InteropTarget
impl Hash for InteropTarget
Source§impl PartialEq for InteropTarget
impl PartialEq for InteropTarget
impl StructuralPartialEq for InteropTarget
Auto Trait Implementations§
impl Freeze for InteropTarget
impl RefUnwindSafe for InteropTarget
impl Send for InteropTarget
impl Sync for InteropTarget
impl Unpin for InteropTarget
impl UnsafeUnpin for InteropTarget
impl UnwindSafe for InteropTarget
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