Skip to main content

Select

Struct Select 

Source
pub struct Select {
Show 35 fields pub traj_id: Option<TrajId>, pub natoms_min: Option<u32>, pub natoms_max: Option<u32>, pub symbols_all: Vec<String>, pub content_hash: Option<[u8; 16]>, pub energy_min: Option<f64>, pub energy_max: Option<f64>, pub fmax_min: Option<f64>, pub fmax_max: Option<f64>, pub mass_min: Option<f64>, pub mass_max: Option<f64>, pub volume_min: Option<f64>, pub volume_max: Option<f64>, pub pbc_exact: Option<[bool; 3]>, pub time_min: Option<f64>, pub time_max: Option<f64>, pub timestep_min: Option<f64>, pub timestep_max: Option<f64>, pub frame_index_min: Option<f64>, pub frame_index_max: Option<f64>, pub neb_bead_min: Option<f64>, pub neb_bead_max: Option<f64>, pub neb_band_min: Option<f64>, pub neb_band_max: Option<f64>, pub charge_min: Option<f64>, pub charge_max: Option<f64>, pub magmom_min: Option<f64>, pub magmom_max: Option<f64>, pub element_count_min: Vec<(String, u32)>, pub element_count_exact: Vec<(String, u32)>, pub exact_formula: Option<String>, pub require_forces: bool, pub require_velocities: bool, pub require_energy: bool, pub limit: Option<usize>,
}
Expand description

Non-SQL selection builder (ASE.db-competitive campaign filters via secondary indexes).

Fields§

§traj_id: Option<TrajId>§natoms_min: Option<u32>§natoms_max: Option<u32>§symbols_all: Vec<String>§content_hash: Option<[u8; 16]>§energy_min: Option<f64>§energy_max: Option<f64>§fmax_min: Option<f64>§fmax_max: Option<f64>§mass_min: Option<f64>§mass_max: Option<f64>§volume_min: Option<f64>§volume_max: Option<f64>§pbc_exact: Option<[bool; 3]>

Exact PBC mask from metadata (pbc); frames without pbc key never match.

§time_min: Option<f64>§time_max: Option<f64>§timestep_min: Option<f64>§timestep_max: Option<f64>§frame_index_min: Option<f64>§frame_index_max: Option<f64>§neb_bead_min: Option<f64>§neb_bead_max: Option<f64>§neb_band_min: Option<f64>§neb_band_max: Option<f64>§charge_min: Option<f64>§charge_max: Option<f64>§magmom_min: Option<f64>§magmom_max: Option<f64>§element_count_min: Vec<(String, u32)>§element_count_exact: Vec<(String, u32)>§exact_formula: Option<String>§require_forces: bool§require_velocities: bool§require_energy: bool§limit: Option<usize>

Implementations§

Source§

impl Select

Source

pub fn new() -> Self

Source

pub fn trajectory(self, id: TrajId) -> Self

Source

pub fn natoms_range(self, min: u32, max: u32) -> Self

Source

pub fn require_symbol(self, s: impl Into<String>) -> Self

Source

pub fn exact_hash(self, hash: [u8; 16]) -> Self

Source

pub fn energy_range(self, min: f64, max: f64) -> Self

Source

pub fn fmax_range(self, min: f64, max: f64) -> Self

Source

pub fn mass_range(self, min: f64, max: f64) -> Self

Source

pub fn volume_range(self, min: f64, max: f64) -> Self

Source

pub fn pbc(self, xyz: [bool; 3]) -> Self

Source

pub fn time_range(self, min: f64, max: f64) -> Self

Source

pub fn timestep_range(self, min: f64, max: f64) -> Self

Source

pub fn frame_index_range(self, min: f64, max: f64) -> Self

Source

pub fn neb_bead_range(self, min: f64, max: f64) -> Self

Source

pub fn neb_band_range(self, min: f64, max: f64) -> Self

Source

pub fn charge_range(self, min: f64, max: f64) -> Self

Source

pub fn magmom_range(self, min: f64, max: f64) -> Self

Source

pub fn element_min(self, symbol: impl Into<String>, count: u32) -> Self

Source

pub fn element_exact(self, symbol: impl Into<String>, count: u32) -> Self

Source

pub fn exact_composition(self, formula: impl Into<String>) -> Self

Source

pub fn require_forces(self) -> Self

Source

pub fn require_velocities(self) -> Self

Source

pub fn require_energy(self) -> Self

Source

pub fn limit(self, n: usize) -> Self

Trait Implementations§

Source§

impl Clone for Select

Source§

fn clone(&self) -> Select

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Select

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Select

Source§

fn default() -> Select

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.