pub struct DecodedImage { /* private fields */ }Expand description
One decoded image with owned typed pixels and source metadata.
Implementations§
Source§impl DecodedImage
impl DecodedImage
Sourcepub fn pixels(&self) -> &DecodedPixels
pub fn pixels(&self) -> &DecodedPixels
Borrows decoded pixels.
Sourcepub const fn metadata(&self) -> DecodedMetadata
pub const fn metadata(&self) -> DecodedMetadata
Returns source metadata.
Sourcepub fn into_pixels(self) -> DecodedPixels
pub fn into_pixels(self) -> DecodedPixels
Consumes the wrapper and returns pixels.
Trait Implementations§
Source§impl Clone for DecodedImage
impl Clone for DecodedImage
Source§fn clone(&self) -> DecodedImage
fn clone(&self) -> DecodedImage
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 DecodedImage
impl Debug for DecodedImage
Source§impl PartialEq for DecodedImage
impl PartialEq for DecodedImage
Source§fn eq(&self, other: &DecodedImage) -> bool
fn eq(&self, other: &DecodedImage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecodedImage
Auto Trait Implementations§
impl Freeze for DecodedImage
impl RefUnwindSafe for DecodedImage
impl Send for DecodedImage
impl Sync for DecodedImage
impl Unpin for DecodedImage
impl UnsafeUnpin for DecodedImage
impl UnwindSafe for DecodedImage
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