pub struct DataImageSource {
pub data: Vec<u8>,
pub format: ImageFormat,
}Fields§
§data: Vec<u8>§format: ImageFormatImplementations§
Trait Implementations§
Source§impl Clone for DataImageSource
impl Clone for DataImageSource
Source§fn clone(&self) -> DataImageSource
fn clone(&self) -> DataImageSource
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 DataImageSource
impl Debug for DataImageSource
Source§impl From<DataImageSource> for ImageSource
impl From<DataImageSource> for ImageSource
Source§fn from(value: DataImageSource) -> Self
fn from(value: DataImageSource) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DataImageSource
impl PartialEq for DataImageSource
Source§fn eq(&self, other: &DataImageSource) -> bool
fn eq(&self, other: &DataImageSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DataImageSource
impl StructuralPartialEq for DataImageSource
Auto Trait Implementations§
impl Freeze for DataImageSource
impl RefUnwindSafe for DataImageSource
impl Send for DataImageSource
impl Sync for DataImageSource
impl Unpin for DataImageSource
impl UnsafeUnpin for DataImageSource
impl UnwindSafe for DataImageSource
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