pub struct Img<T> {
pub fmt: ImgFmt,
pub data: T,
}Expand description
Image data with an associated format.
Fields§
§fmt: ImgFmtThe image format.
data: TThe image data.
Implementations§
Trait Implementations§
impl<T: Eq> Eq for Img<T>
impl<T> StructuralPartialEq for Img<T>
Auto Trait Implementations§
impl<T> Freeze for Img<T>where
T: Freeze,
impl<T> RefUnwindSafe for Img<T>where
T: RefUnwindSafe,
impl<T> Send for Img<T>where
T: Send,
impl<T> Sync for Img<T>where
T: Sync,
impl<T> Unpin for Img<T>where
T: Unpin,
impl<T> UnwindSafe for Img<T>where
T: 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