pub struct SpectralMask<const N: usize> {
pub name: &'static str,
/* private fields */
}Expand description
A piecewise-linear spectral emission mask.
Fixed-capacity array of mask points, sorted by frequency. Supports MIL-STD-461G RE102 (2 MHz – 18 GHz), CE102 (10 kHz – 10 MHz), 3GPP TS 36.141 §6.3 ACLR, and ITU-R SM.1048-5 masks.
Fields§
§name: &'static strMask identifier (e.g., “RE102_ground”, “CE102”, “ACLR_E-UTRA”).
Implementations§
Source§impl<const N: usize> SpectralMask<N>
impl<const N: usize> SpectralMask<N>
Sourcepub fn add_point(&mut self, freq_hz: f64, limit_db: f32) -> bool
pub fn add_point(&mut self, freq_hz: f64, limit_db: f32) -> bool
Add a point. Returns false if mask is full.
Auto Trait Implementations§
impl<const N: usize> Freeze for SpectralMask<N>
impl<const N: usize> RefUnwindSafe for SpectralMask<N>
impl<const N: usize> Send for SpectralMask<N>
impl<const N: usize> Sync for SpectralMask<N>
impl<const N: usize> Unpin for SpectralMask<N>
impl<const N: usize> UnsafeUnpin for SpectralMask<N>
impl<const N: usize> UnwindSafe for SpectralMask<N>
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