pub struct Analytics<'a> {
pub masses: &'a dyn MassProvider,
pub decays: &'a dyn DecayProvider,
}Expand description
Provider bundle for radioanalytic quantities.
Both providers are needed at once — atom numbers come from masses, activities from decay constants — so they travel together:
use nucleide_material::{Analytics, Ame2020, ChainDecays};
let an = Analytics { masses: &Ame2020, decays: &ChainDecays };
let a = mat.activity(&an).unwrap();Fields§
§masses: &'a dyn MassProviderAtomic masses (u) for gram → atom conversion.
decays: &'a dyn DecayProviderDecay constants λ (1/s).
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Analytics<'a>
impl<'a> !Send for Analytics<'a>
impl<'a> !Sync for Analytics<'a>
impl<'a> !UnwindSafe for Analytics<'a>
impl<'a> Freeze for Analytics<'a>
impl<'a> Unpin for Analytics<'a>
impl<'a> UnsafeUnpin for Analytics<'a>
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