pub struct DoseTransportRecord {Show 14 fields
pub position_m: [f64; 3],
pub tick: i64,
pub photon_energy_j: Option<f64>,
pub linear_attenuation_per_m: Option<f64>,
pub mass_attenuation_m2_per_kg: Option<f64>,
pub photon_fluence_per_m2: Option<f64>,
pub absorbed_dose_gy: Option<f64>,
pub equivalent_dose_sv: Option<f64>,
pub linear_energy_transfer_j_per_m: Option<f64>,
pub uncertainty: Option<f64>,
pub material_entry: u32,
pub calibration_ref: u32,
pub model_ref: u32,
pub validity_flags: u32,
}Fields§
§position_m: [f64; 3]§tick: i64§photon_energy_j: Option<f64>§linear_attenuation_per_m: Option<f64>§mass_attenuation_m2_per_kg: Option<f64>§photon_fluence_per_m2: Option<f64>§absorbed_dose_gy: Option<f64>§equivalent_dose_sv: Option<f64>§linear_energy_transfer_j_per_m: Option<f64>§uncertainty: Option<f64>§material_entry: u32§calibration_ref: u32§model_ref: u32§validity_flags: u32Implementations§
Source§impl DoseTransportRecord
impl DoseTransportRecord
pub fn parse(bytes: &[u8], valid: bool) -> Result<Option<Self>, Error>
pub fn encode(&self, valid: bool, out: &mut [u8; 128]) -> Result<(), Error>
Sourcepub fn validate_against_blocks(
&self,
cal: Block<'_>,
model: Block<'_>,
) -> Result<(TransportSpecies, EpistemicClass), Error>
pub fn validate_against_blocks( &self, cal: Block<'_>, model: Block<'_>, ) -> Result<(TransportSpecies, EpistemicClass), Error>
Validates dose record bindings against schema 107 Calibration and schema 134 ModelEvidence.
Trait Implementations§
Source§impl Clone for DoseTransportRecord
impl Clone for DoseTransportRecord
impl Copy for DoseTransportRecord
Source§impl Debug for DoseTransportRecord
impl Debug for DoseTransportRecord
Source§impl PartialEq for DoseTransportRecord
impl PartialEq for DoseTransportRecord
impl StructuralPartialEq for DoseTransportRecord
Auto Trait Implementations§
impl Freeze for DoseTransportRecord
impl RefUnwindSafe for DoseTransportRecord
impl Send for DoseTransportRecord
impl Sync for DoseTransportRecord
impl Unpin for DoseTransportRecord
impl UnsafeUnpin for DoseTransportRecord
impl UnwindSafe for DoseTransportRecord
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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