pub struct ImageLoader {
pub completed: Arc<Mutex<HashMap<String, LoadedImageData>>>,
}Expand description
Manages the background image loading infrastructure.
管理后台图片加载基础设施。
Fields§
§completed: Arc<Mutex<HashMap<String, LoadedImageData>>>Completed loads from worker threads, keyed by resource name. Each frame, completed loads are drained to create egui textures.
工作线程完成的加载结果,按资源名称索引。每帧消耗以创建 egui 纹理。
Trait Implementations§
Source§impl Clone for ImageLoader
impl Clone for ImageLoader
Source§fn clone(&self) -> ImageLoader
fn clone(&self) -> ImageLoader
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 ImageLoader
impl Debug for ImageLoader
Source§impl Default for ImageLoader
impl Default for ImageLoader
Source§fn default() -> ImageLoader
fn default() -> ImageLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ImageLoader
impl RefUnwindSafe for ImageLoader
impl Send for ImageLoader
impl Sync for ImageLoader
impl Unpin for ImageLoader
impl UnsafeUnpin for ImageLoader
impl UnwindSafe for ImageLoader
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