1 2 3 4 5 6 7 8 9 10 11 12
use std::ops::Deref; use crate::types::Float; #[derive(Debug, Clone, Copy)] pub struct NoiseEstimate<F: Float>(pub F); impl<F: Float> Deref for NoiseEstimate<F> { type Target = F; fn deref(&self) -> &Self::Target { &self.0 } }