Struct vg::ImageStore
source · [−]pub struct ImageStore<T>(_);
Expand description
Represents image store
Implementations
sourceimpl<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> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more