pub struct TofExperimentRecord {
pub instrument: TofInstrument,
}Expand description
One explicitly microsecond-domain time-of-flight experiment.
Fields§
§instrument: TofInstrumentFixed 15-coefficient TOF calibration/profile model.
Implementations§
Source§impl TofExperimentRecord
impl TofExperimentRecord
Sourcepub fn new(instrument: TofInstrument) -> Result<Self, DomainError>
pub fn new(instrument: TofInstrument) -> Result<Self, DomainError>
Validate and own one fixed TOF instrument.
§Errors
Returns DomainError when an instrument coefficient is invalid.
Sourcepub fn validate(&self) -> Result<(), DomainError>
pub fn validate(&self) -> Result<(), DomainError>
Revalidate adapter-decoded state.
§Errors
Returns DomainError when an instrument coefficient is invalid.
Trait Implementations§
Source§impl Clone for TofExperimentRecord
impl Clone for TofExperimentRecord
Source§fn clone(&self) -> TofExperimentRecord
fn clone(&self) -> TofExperimentRecord
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 moreimpl Copy for TofExperimentRecord
Source§impl Debug for TofExperimentRecord
impl Debug for TofExperimentRecord
Source§impl PartialEq for TofExperimentRecord
impl PartialEq for TofExperimentRecord
impl StructuralPartialEq for TofExperimentRecord
Auto Trait Implementations§
impl Freeze for TofExperimentRecord
impl RefUnwindSafe for TofExperimentRecord
impl Send for TofExperimentRecord
impl Sync for TofExperimentRecord
impl Unpin for TofExperimentRecord
impl UnsafeUnpin for TofExperimentRecord
impl UnwindSafe for TofExperimentRecord
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