Struct image_merger::Image
source · pub struct Image<P: Pixel, U: GenericImage<Pixel = P>> { /* private fields */ }Expand description
Represents an image that can be passed to the merger. This is a wrapper around an image crate’s GenericImage and adds some additional functionality for the merger.
Type Parameters
P- The pixel type of the underlying image.U- The underlying image type.
Implementations§
source§impl<P: Pixel, U: GenericImage<Pixel = P>> Image<P, U>
impl<P: Pixel, U: GenericImage<Pixel = P>> Image<P, U>
Trait Implementations§
source§impl<P, Container> From<ImageBuffer<P, Container>> for Image<P, ImageBuffer<P, Container>>
impl<P, Container> From<ImageBuffer<P, Container>> for Image<P, ImageBuffer<P, Container>>
source§fn from(image: ImageBuffer<P, Container>) -> Self
fn from(image: ImageBuffer<P, Container>) -> Self
Creates a new Image from a preexisting ImageBuffer.
source§impl<P: PartialEq + Pixel, U: PartialEq + GenericImage<Pixel = P>> PartialEq for Image<P, U>
impl<P: PartialEq + Pixel, U: PartialEq + GenericImage<Pixel = P>> PartialEq for Image<P, U>
impl<P: Eq + Pixel, U: Eq + GenericImage<Pixel = P>> Eq for Image<P, U>
impl<P: Pixel, U: GenericImage<Pixel = P>> StructuralEq for Image<P, U>
impl<P: Pixel, U: GenericImage<Pixel = P>> StructuralPartialEq for Image<P, U>
Auto Trait Implementations§
impl<P, U> RefUnwindSafe for Image<P, U>where
U: RefUnwindSafe,
impl<P, U> Send for Image<P, U>where
U: Send,
impl<P, U> Sync for Image<P, U>where
U: Sync,
impl<P, U> Unpin for Image<P, U>where
U: Unpin,
impl<P, U> UnwindSafe for Image<P, U>where
U: UnwindSafe,
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