pub type GaugeType = FiniteF64;
Expand description
Type used for Gauge entries
Aliased Type§
struct GaugeType(/* private fields */);
Implementations
Source§impl FiniteF64
impl FiniteF64
Sourcepub const unsafe fn new_unchecked(value: f64) -> Self
pub const unsafe fn new_unchecked(value: f64) -> Self
Creates a finite float without checking whether the value is finte. This results in undefined behavior if the value is non-finite.
§Safety
The value must not be NaN or infinite.
Sourcepub fn saturating_add(self, other: Self) -> Self
pub fn saturating_add(self, other: Self) -> Self
Adds two numbers, saturating at the maximum and minimum representable values.
Sourcepub fn saturating_sub(self, other: Self) -> Self
pub fn saturating_sub(self, other: Self) -> Self
Subtracts two numbers, saturating at the maximum and minimum representable values.
Sourcepub fn saturating_mul(self, other: Self) -> Self
pub fn saturating_mul(self, other: Self) -> Self
Multiplies two numbers, saturating at the maximum and minimum representable values.
Sourcepub fn saturating_div(self, other: Self) -> Self
pub fn saturating_div(self, other: Self) -> Self
Divides two numbers, saturating at the maximum and minimum representable values.
Trait Implementations
Source§impl<'de> Deserialize<'de> for FiniteF64
impl<'de> Deserialize<'de> for FiniteF64
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more