pub struct LoadedImageData {
pub color_image: ColorImage,
}Expand description
Request sent to the background worker thread to load an image from disk.
发送到后台工作线程的图片加载请求。 Result returned from the background worker thread after loading an image.
后台工作线程完成图片加载后返回的结果。
Fields§
§color_image: ColorImageDecoded image data ready for texture upload on the main thread.
已解码的图像数据,可在主线程直接上传为纹理。
Trait Implementations§
Source§impl Clone for LoadedImageData
impl Clone for LoadedImageData
Source§fn clone(&self) -> LoadedImageData
fn clone(&self) -> LoadedImageData
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 moreSource§impl Debug for LoadedImageData
impl Debug for LoadedImageData
Source§impl Default for LoadedImageData
impl Default for LoadedImageData
Source§fn default() -> LoadedImageData
fn default() -> LoadedImageData
Returns the “default value” for a type. Read more
Source§impl PartialEq for LoadedImageData
impl PartialEq for LoadedImageData
impl Eq for LoadedImageData
impl StructuralPartialEq for LoadedImageData
Auto Trait Implementations§
impl Freeze for LoadedImageData
impl RefUnwindSafe for LoadedImageData
impl Send for LoadedImageData
impl Sync for LoadedImageData
impl Unpin for LoadedImageData
impl UnsafeUnpin for LoadedImageData
impl UnwindSafe for LoadedImageData
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