pub struct DefaultTextureLoader { /* private fields */ }
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more