Struct egui::load::DefaultBytesLoader
source · pub struct DefaultBytesLoader {
cache: Mutex<HashMap<Cow<'static, str>, Bytes>>,
}
Expand description
Maps URI:s to Bytes
, e.g. found with include_bytes!
.
By convention, the URI:s should be prefixed with bytes://
.
Fields§
§cache: Mutex<HashMap<Cow<'static, str>, Bytes>>
Implementations§
Trait Implementations§
source§impl BytesLoader for DefaultBytesLoader
impl BytesLoader for DefaultBytesLoader
source§fn load(&self, _: &Context, uri: &str) -> BytesLoadResult
fn load(&self, _: &Context, uri: &str) -> BytesLoadResult
Try loading the bytes 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
source§impl Default for DefaultBytesLoader
impl Default for DefaultBytesLoader
source§fn default() -> DefaultBytesLoader
fn default() -> DefaultBytesLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for DefaultBytesLoader
impl !RefUnwindSafe for DefaultBytesLoader
impl Send for DefaultBytesLoader
impl Sync for DefaultBytesLoader
impl Unpin for DefaultBytesLoader
impl UnwindSafe for DefaultBytesLoader
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