made-core 0.7.4

Domain core of MADE: entities, value objects, events, ports. No IO.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// A metric sample value proven to be finite.
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct FiniteMetricValue(f64);

impl FiniteMetricValue {
    pub(super) fn new(value: f64) -> Self {
        debug_assert!(value.is_finite());
        Self(value)
    }

    #[must_use]
    pub fn get(self) -> f64 {
        self.0
    }
}