Struct crabgrab::feature::bitmap::FrameBitmapPool
source · pub struct FrameBitmapPool { /* private fields */ }
Expand description
A pool of frame bitmaps
Implementations§
source§impl FrameBitmapPool
impl FrameBitmapPool
sourcepub fn new_with_initial_capacity(
capacity: usize,
initial_resolution: (usize, usize),
max: usize,
format: CapturePixelFormat
) -> Self
pub fn new_with_initial_capacity( capacity: usize, initial_resolution: (usize, usize), max: usize, format: CapturePixelFormat ) -> Self
Create a new bitmap pool with an initial capacity
and resolution
for the given format
, limited to max
pooled bitmaps
sourcepub fn free_pooled(&self)
pub fn free_pooled(&self)
Free all pooled bitmaps - this happens automatically on drop()
, but you can free them ahead of time if you need to.
Auto Trait Implementations§
impl Freeze for FrameBitmapPool
impl !RefUnwindSafe for FrameBitmapPool
impl Send for FrameBitmapPool
impl Sync for FrameBitmapPool
impl Unpin for FrameBitmapPool
impl !UnwindSafe for FrameBitmapPool
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