pub struct EncodedImage { /* private fields */ }Expand description
One deterministic encoded image held entirely in memory.
Implementations§
Source§impl EncodedImage
impl EncodedImage
pub const fn media_type(&self) -> &'static str
pub const fn dimensions(&self) -> PixelDimensions
pub fn bytes(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Clone for EncodedImage
impl Clone for EncodedImage
Source§fn clone(&self) -> EncodedImage
fn clone(&self) -> EncodedImage
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 EncodedImage
impl Debug for EncodedImage
impl Eq for EncodedImage
Source§impl PartialEq for EncodedImage
impl PartialEq for EncodedImage
impl StructuralPartialEq for EncodedImage
Auto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin for EncodedImage
impl UnsafeUnpin for EncodedImage
impl UnwindSafe for EncodedImage
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