pub struct KnnOptions {
pub k: i32,
pub cutoff: f64,
pub species: i32,
pub mutual: bool,
}Expand description
Knobs for a k-nearest neighbour list.
let options = seams::KnnOptions { k: 4, mutual: true, ..Default::default() };
assert_eq!(options.k, 4);Fields§
§k: i32Positive neighbour count.
cutoff: f64Nominal cutoff, angstroms. Candidates lie inside cutoff + 1.5.
species: i32Species filter.
mutual: boolKeep only pairs that name each other.
Trait Implementations§
Source§impl Clone for KnnOptions
impl Clone for KnnOptions
impl Copy for KnnOptions
Source§impl Debug for KnnOptions
impl Debug for KnnOptions
Source§impl Default for KnnOptions
impl Default for KnnOptions
Source§impl PartialEq for KnnOptions
impl PartialEq for KnnOptions
impl StructuralPartialEq for KnnOptions
Auto Trait Implementations§
impl Freeze for KnnOptions
impl RefUnwindSafe for KnnOptions
impl Send for KnnOptions
impl Sync for KnnOptions
impl Unpin for KnnOptions
impl UnsafeUnpin for KnnOptions
impl UnwindSafe for KnnOptions
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