pub struct PixmapPool { /* private fields */ }Expand description
This is a mutable pixmap pool which allocates queues of size classes (powers of 2) containing previously allocated and used pixmaps. They are given to the consumer as a virtual pixmap of the requested size but are always allocated as a closest power of 2 sized memory block.
Implementations§
Source§impl PixmapPool
impl PixmapPool
Sourcepub fn new_with_capacity(capacity: usize) -> Self
pub fn new_with_capacity(capacity: usize) -> Self
Creates a new pixmap pool with the specified capacity
Trait Implementations§
Source§impl Debug for PixmapPool
impl Debug for PixmapPool
Auto Trait Implementations§
impl !Freeze for PixmapPool
impl !RefUnwindSafe for PixmapPool
impl Send for PixmapPool
impl !Sync for PixmapPool
impl Unpin for PixmapPool
impl UnsafeUnpin for PixmapPool
impl UnwindSafe for PixmapPool
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