pub struct FrameSelectionSlice {
pub frame_index: usize,
pub result: SelectionResult,
pub positions: Vec<[f64; 3]>,
pub atom_indices: Vec<usize>,
}Expand description
One frame’s contribution to a multi-frame selection.
Fields§
§frame_index: usizeIndex of this frame in the input slice (0-based).
result: SelectionResultFull selection result on this frame.
positions: Vec<[f64; 3]>For atom-context selections (context_size == 1): xyz of each selected
atom in atom_data order for that frame (same length as sorted unique
primary indices). Empty for pair/angle/dihedral contexts (use result.matches).
atom_indices: Vec<usize>Atom-context indices that produced Self::positions (sorted unique).
Trait Implementations§
Source§impl Clone for FrameSelectionSlice
impl Clone for FrameSelectionSlice
Source§fn clone(&self) -> FrameSelectionSlice
fn clone(&self) -> FrameSelectionSlice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FrameSelectionSlice
impl RefUnwindSafe for FrameSelectionSlice
impl Send for FrameSelectionSlice
impl Sync for FrameSelectionSlice
impl Unpin for FrameSelectionSlice
impl UnsafeUnpin for FrameSelectionSlice
impl UnwindSafe for FrameSelectionSlice
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