pub struct Classification {
pub labels: Vec<i32>,
pub counts: [i32; 9],
}Expand description
CHILL or CHILL+ labels and the nine population counts.
counts[k] is the number of atoms whose label value is k.
let (xyz, edge) = seams::diamond8();
let mut system = seams::System::new()?;
system.set_ortho(&xyz, edge, edge, edge)?;
let ice = system.chill_plus(&seams::ChillOptions::default())?;
assert_eq!(ice.counts[0], 8);
assert_eq!(ice.labels.len(), 8);Fields§
§labels: Vec<i32>One label code per atom.
counts: [i32; 9]Population in label order.
Trait Implementations§
Source§impl Clone for Classification
impl Clone for Classification
Source§impl Debug for Classification
impl Debug for Classification
impl Eq for Classification
Source§impl PartialEq for Classification
impl PartialEq for Classification
impl StructuralPartialEq for Classification
Auto Trait Implementations§
impl Freeze for Classification
impl RefUnwindSafe for Classification
impl Send for Classification
impl Sync for Classification
impl Unpin for Classification
impl UnsafeUnpin for Classification
impl UnwindSafe for Classification
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