pub struct StructuralTofMultiBankLayout { /* private fields */ }Expand description
Stable shared/local physical parameter packing for structural TOF banks.
Implementations§
Source§impl StructuralTofMultiBankLayout
impl StructuralTofMultiBankLayout
Sourcepub fn new(
input: &StructuralTofMultiBankInput,
) -> Result<Self, StructuralTofMultiBankError>
pub fn new( input: &StructuralTofMultiBankInput, ) -> Result<Self, StructuralTofMultiBankError>
Build the symmetry-aware shared and namespaced bank-local parameter set.
§Errors
Returns StructuralTofMultiBankError for an invalid request or scalar.
Sourcepub const fn parameters(&self) -> &ParameterSet
pub const fn parameters(&self) -> &ParameterSet
Borrow stable physical parameters in solver order.
Sourcepub fn apply_values(
&self,
input: &StructuralTofMultiBankInput,
values: &[f64],
) -> Result<StructuralTofMultiBankInput, StructuralTofMultiBankError>
pub fn apply_values( &self, input: &StructuralTofMultiBankInput, values: &[f64], ) -> Result<StructuralTofMultiBankInput, StructuralTofMultiBankError>
Install one absolute physical state into cloned shared/local records.
§Errors
Returns StructuralTofMultiBankError for a stale contract, wrong
value count, violated bound, or invalid resulting physical model.
Sourcepub fn apply_value_change(
&self,
input: &StructuralTofMultiBankInput,
current_values: &[f64],
values: &[f64],
) -> Result<StructuralTofMultiBankInput, StructuralTofMultiBankError>
pub fn apply_value_change( &self, input: &StructuralTofMultiBankInput, current_values: &[f64], values: &[f64], ) -> Result<StructuralTofMultiBankInput, StructuralTofMultiBankError>
Install a change between two absolute solver states.
Symmetry-constrained site coordinates are local tangent coordinates, so their difference is applied to the current structure. Every other selected value is installed absolutely.
§Errors
Returns StructuralTofMultiBankError for a stale contract, wrong
value count, violated bound, or invalid resulting physical model.
Trait Implementations§
Source§impl Clone for StructuralTofMultiBankLayout
impl Clone for StructuralTofMultiBankLayout
Source§fn clone(&self) -> StructuralTofMultiBankLayout
fn clone(&self) -> StructuralTofMultiBankLayout
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StructuralTofMultiBankLayout
impl Debug for StructuralTofMultiBankLayout
impl StructuralPartialEq for StructuralTofMultiBankLayout
Auto Trait Implementations§
impl !RefUnwindSafe for StructuralTofMultiBankLayout
impl !UnwindSafe for StructuralTofMultiBankLayout
impl Freeze for StructuralTofMultiBankLayout
impl Send for StructuralTofMultiBankLayout
impl Sync for StructuralTofMultiBankLayout
impl Unpin for StructuralTofMultiBankLayout
impl UnsafeUnpin for StructuralTofMultiBankLayout
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
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.