pub struct RattleOptions {
pub amplitude: f64,
pub seed: u64,
pub bounded: bool,
pub per_element: BTreeMap<String, f64>,
}Expand description
Options for rattle.
Fields§
§amplitude: f64Gaussian standard deviation in Angstrom (or the maximum norm when
bounded is set).
seed: u64Explicit seed for the deterministic generator.
bounded: boolDraw a uniform direction with a fixed norm instead of a Gaussian.
per_element: BTreeMap<String, f64>Per-element amplitude overrides in Angstrom.
Trait Implementations§
Source§impl Clone for RattleOptions
impl Clone for RattleOptions
Source§impl Debug for RattleOptions
impl Debug for RattleOptions
Source§impl Default for RattleOptions
impl Default for RattleOptions
Source§impl PartialEq for RattleOptions
impl PartialEq for RattleOptions
impl StructuralPartialEq for RattleOptions
Auto Trait Implementations§
impl Forget for RattleOptions
impl Freeze for RattleOptions
impl Move for RattleOptions
impl RefUnwindSafe for RattleOptions
impl Send for RattleOptions
impl Sync for RattleOptions
impl Unpin for RattleOptions
impl UnsafeUnpin for RattleOptions
impl UnwindSafe for RattleOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more