pub struct EncodedImage {
pub bytes: Vec<u8>,
pub mime: String,
pub width: u32,
pub height: u32,
}Fields§
§bytes: Vec<u8>§mime: String§width: u32§height: u32Implementations§
Source§impl EncodedImage
impl EncodedImage
pub fn into_data_url(self) -> String
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EncodedImage
impl RefUnwindSafe for EncodedImage
impl Send for EncodedImage
impl Sync for EncodedImage
impl Unpin 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