pub struct EncodedImage {
pub mime_type: String,
pub data: Arc<[u8]>,
}Expand description
An image as its file format encodes it.
Fields§
§mime_type: StringIts format’s MIME type, such as image/jpeg.
data: Arc<[u8]>Shared, so that a player hands the same image out again without copying it.
Trait Implementations§
Source§impl Clone for EncodedImage
impl Clone for EncodedImage
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.