pub struct ImageStore<T>(/* private fields */);
Expand description
Represents image store
Implementations§
Source§impl<T> ImageStore<T>
impl<T> ImageStore<T>
Sourcepub fn alloc<R: Renderer<Image = T>>(
&mut self,
renderer: &mut R,
info: ImageInfo,
) -> Result<ImageId, ErrorKind>
pub fn alloc<R: Renderer<Image = T>>( &mut self, renderer: &mut R, info: ImageInfo, ) -> Result<ImageId, ErrorKind>
Allocate image
Sourcepub fn realloc<R: Renderer<Image = T>>(
&mut self,
renderer: &mut R,
id: ImageId,
info: ImageInfo,
) -> Result<(), ErrorKind>
pub fn realloc<R: Renderer<Image = T>>( &mut self, renderer: &mut R, id: ImageId, info: ImageInfo, ) -> Result<(), ErrorKind>
Reallocates the image without changing the id.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ImageStore<T>
impl<T> RefUnwindSafe for ImageStore<T>where
T: RefUnwindSafe,
impl<T> Send for ImageStore<T>where
T: Send,
impl<T> Sync for ImageStore<T>where
T: Sync,
impl<T> Unpin for ImageStore<T>where
T: Unpin,
impl<T> UnwindSafe for ImageStore<T>where
T: UnwindSafe,
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