pub struct DetectorCapacity {
pub width: u32,
pub height: u32,
pub min_distance: u32,
pub grid_cells: u32,
pub existing_points: usize,
}Expand description
Upper bounds for the work a detector context will see, used to allocate
every buffer up front with DetectorContext::with_capacity or
DetectorContext::reserve.
Fields§
§width: u32Largest image width in pixels.
height: u32Largest image height in pixels.
min_distance: u32Smallest min_distance that will be passed; zero reserves for no
spacing at all.
grid_cells: u32Largest grid_cols * grid_rows that will be passed to detect_grid.
existing_points: usizeMost existing_points that will be passed to detect_grid.
Trait Implementations§
Source§impl Clone for DetectorCapacity
impl Clone for DetectorCapacity
impl Copy for DetectorCapacity
Source§impl Debug for DetectorCapacity
impl Debug for DetectorCapacity
Source§impl Default for DetectorCapacity
impl Default for DetectorCapacity
impl Eq for DetectorCapacity
Source§impl PartialEq for DetectorCapacity
impl PartialEq for DetectorCapacity
impl StructuralPartialEq for DetectorCapacity
Auto Trait Implementations§
impl Freeze for DetectorCapacity
impl RefUnwindSafe for DetectorCapacity
impl Send for DetectorCapacity
impl Sync for DetectorCapacity
impl Unpin for DetectorCapacity
impl UnsafeUnpin for DetectorCapacity
impl UnwindSafe for DetectorCapacity
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