pub struct SelectionResult {
pub selection: String,
pub context_size: usize,
pub matches: Vec<SelectionMatch>,
}Expand description
Result of evaluating a chemfiles selection string on a ConFrame.
Fields§
§selection: StringSelection string that was evaluated.
context_size: usize1 = atom, 2 = pair/bond, 3 = angle, 4 = dihedral.
matches: Vec<SelectionMatch>Matches in CON atom_data index space.
Implementations§
Source§impl SelectionResult
impl SelectionResult
Sourcepub fn primary_indices(&self) -> Vec<usize>
pub fn primary_indices(&self) -> Vec<usize>
First atom index of each match (chemfiles “primary” index).
Trait Implementations§
Source§impl Clone for SelectionResult
impl Clone for SelectionResult
Source§fn clone(&self) -> SelectionResult
fn clone(&self) -> SelectionResult
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 SelectionResult
impl RefUnwindSafe for SelectionResult
impl Send for SelectionResult
impl Sync for SelectionResult
impl Unpin for SelectionResult
impl UnsafeUnpin for SelectionResult
impl UnwindSafe for SelectionResult
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