pub struct ImageInput {
pub source: InputSource,
}
Fields§
§source: InputSource
Implementations§
Source§impl ImageInput
impl ImageInput
pub fn from_bytes(filename: String, bytes: Bytes) -> Self
pub fn from_vec_u8(filename: String, vec: Vec<u8>) -> Self
Trait Implementations§
Source§impl Clone for ImageInput
impl Clone for ImageInput
Source§fn clone(&self) -> ImageInput
fn clone(&self) -> ImageInput
Returns a copy 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 moreSource§impl Debug for ImageInput
impl Debug for ImageInput
Source§impl Default for ImageInput
impl Default for ImageInput
Source§fn default() -> ImageInput
fn default() -> ImageInput
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImageInput
impl PartialEq for ImageInput
impl StructuralPartialEq for ImageInput
Auto Trait Implementations§
impl !Freeze for ImageInput
impl RefUnwindSafe for ImageInput
impl Send for ImageInput
impl Sync for ImageInput
impl Unpin for ImageInput
impl UnwindSafe for ImageInput
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