pub struct TextureAtlasMap<K>{ /* private fields */ }Implementations§
Source§impl<K> TextureAtlasMap<K>
impl<K> TextureAtlasMap<K>
pub async fn convert(&self, target: &Target) -> TextureAtlasMapFile<K>
pub fn get(&self, key: &K) -> Option<TexturePosition>
Methods from Deref<Target = TextureAtlas>§
pub async fn convert(&self, target: &Target) -> TextureAtlasFile
Methods from Deref<Target = Texture<USAGE>>§
pub fn get_dim(&self) -> Rect
pub fn get_format(&self) -> TextureFormat
pub fn write( &self, target: &Target, spot: PositionedRect, image: DynamicImage, ) -> Result<(), &'static str>
pub async fn read(&self, target: &Target) -> DynamicImage
Trait Implementations§
Source§impl<K> Debug for TextureAtlasMap<K>
impl<K> Debug for TextureAtlasMap<K>
Auto Trait Implementations§
impl<K> Freeze for TextureAtlasMap<K>
impl<K> !RefUnwindSafe for TextureAtlasMap<K>
impl<K> Send for TextureAtlasMap<K>where
K: Send,
impl<K> Sync for TextureAtlasMap<K>where
K: Sync,
impl<K> Unpin for TextureAtlasMap<K>where
K: Unpin,
impl<K> !UnwindSafe for TextureAtlasMap<K>
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