pub struct OpenRequest {
pub encoded: Arc<[u8]>,
pub options: DecodeOptions,
pub device: Device,
}Expand description
OpenRequest is everything a decoder needs to open one image.
Fields§
§encoded: Arc<[u8]>encoded is the complete file. It is shared so a reader can keep it without copying.
options: DecodeOptionsoptions bound the decode and say what size the caller wants.
device: Devicedevice is where a native decoder imports a texture it produced. Software decoders
ignore it.
Trait Implementations§
Source§impl Clone for OpenRequest
impl Clone for OpenRequest
Source§fn clone(&self) -> OpenRequest
fn clone(&self) -> OpenRequest
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for OpenRequest
impl !UnwindSafe for OpenRequest
impl Freeze for OpenRequest
impl Send for OpenRequest
impl Sync for OpenRequest
impl Unpin for OpenRequest
impl UnsafeUnpin for OpenRequest
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