pub struct VecCellBuilder<K, const D: usize> { /* private fields */ }Expand description
Implementations§
Source§impl<K, const D: usize> VecCellBuilder<K, D>
impl<K, const D: usize> VecCellBuilder<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. VecCell will panic when asked to search for
points within a radius larger than the maximum.
§Example
use hoomd_spatial::VecCell;
let vec_cell = VecCell::<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 VecCellBuilder<K, D>
impl<K, const D: usize> RefUnwindSafe for VecCellBuilder<K, D>where
K: RefUnwindSafe,
impl<K, const D: usize> Send for VecCellBuilder<K, D>where
K: Send,
impl<K, const D: usize> Sync for VecCellBuilder<K, D>where
K: Sync,
impl<K, const D: usize> Unpin for VecCellBuilder<K, D>where
K: Unpin,
impl<K, const D: usize> UnsafeUnpin for VecCellBuilder<K, D>
impl<K, const D: usize> UnwindSafe for VecCellBuilder<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