pub struct HashCellBuilder<K, const D: usize> { /* private fields */ }Expand description
Implementations§
Source§impl<K, const D: usize> HashCellBuilder<K, D>
impl<K, const D: usize> HashCellBuilder<K, D>
Sourcepub fn nominal_search_radius(self, nominal_search_radius: PositiveReal) -> Self
pub fn nominal_search_radius(self, nominal_search_radius: PositiveReal) -> Self
Sourcepub fn maximum_search_radius(self, maximum_search_radius: f64) -> Self
pub fn maximum_search_radius(self, maximum_search_radius: f64) -> Self
Choose the largest search radius.
The maximum radius is rounded up to the nearest integer multiple of the
nominal search radius. HashCell will panic when asked to search for
points within a radius larger than the maximum.
§Example
use hoomd_spatial::HashCell;
let hash_cell = HashCell::<usize, 3>::builder()
.nominal_search_radius(2.5.try_into()?)
.maximum_search_radius(7.5)
.build();Auto Trait Implementations§
impl<K, const D: usize> Freeze for HashCellBuilder<K, D>
impl<K, const D: usize> RefUnwindSafe for HashCellBuilder<K, D>where
K: RefUnwindSafe,
impl<K, const D: usize> Send for HashCellBuilder<K, D>where
K: Send,
impl<K, const D: usize> Sync for HashCellBuilder<K, D>where
K: Sync,
impl<K, const D: usize> Unpin for HashCellBuilder<K, D>where
K: Unpin,
impl<K, const D: usize> UnsafeUnpin for HashCellBuilder<K, D>
impl<K, const D: usize> UnwindSafe for HashCellBuilder<K, D>where
K: 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