Struct egui::load::DefaultTextureLoader
source · pub struct DefaultTextureLoader {
cache: Mutex<HashMap<(String, TextureOptions), TextureHandle>>,
}
Fields§
§cache: Mutex<HashMap<(String, TextureOptions), TextureHandle>>
Trait Implementations§
source§impl Default for DefaultTextureLoader
impl Default for DefaultTextureLoader
source§fn default() -> DefaultTextureLoader
fn default() -> DefaultTextureLoader
Returns the “default value” for a type. Read more
source§impl TextureLoader for DefaultTextureLoader
impl TextureLoader for DefaultTextureLoader
source§fn load(
&self,
ctx: &Context,
uri: &str,
texture_options: TextureOptions,
size_hint: SizeHint,
) -> TextureLoadResult
fn load( &self, ctx: &Context, uri: &str, texture_options: TextureOptions, size_hint: SizeHint, ) -> TextureLoadResult
Try loading the texture from the given uri. Read more
source§fn forget_all(&self)
fn forget_all(&self)
Forget all URIs ever given to this loader. Read more
Auto Trait Implementations§
impl !Freeze for DefaultTextureLoader
impl !RefUnwindSafe for DefaultTextureLoader
impl Send for DefaultTextureLoader
impl Sync for DefaultTextureLoader
impl Unpin for DefaultTextureLoader
impl !UnwindSafe for DefaultTextureLoader
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