pub struct FrequencyRange(/* private fields */);Implementations§
Source§impl FrequencyRange
impl FrequencyRange
pub fn new(start: Frequency, end: Frequency) -> Self
pub fn new_mhz(start: f64, end: f64) -> Self
pub const fn start(&self) -> Frequency
pub const fn end(&self) -> Frequency
pub fn mid_band(&self) -> Frequency
pub fn contains(&self, frequency: Frequency) -> bool
pub fn contains_mhz(&self, frequency: f64) -> bool
pub fn is_empty(&self) -> bool
pub fn starts_before(&self, other: &Self) -> bool
pub fn starts_with(&self, other: &Self) -> bool
pub fn ends_before(&self, other: &Self) -> bool
pub fn ends_with(&self, other: &Self) -> bool
pub fn is_subrange(&self, other: &Self) -> bool
pub fn is_overlapping(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for FrequencyRange
impl Clone for FrequencyRange
Source§fn clone(&self) -> FrequencyRange
fn clone(&self) -> FrequencyRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FrequencyRange
impl Debug for FrequencyRange
Source§impl<'de> Deserialize<'de> for FrequencyRange
impl<'de> Deserialize<'de> for FrequencyRange
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
Source§impl Display for FrequencyRange
impl Display for FrequencyRange
Source§impl From<FrequencyRange> for Range<Frequency>
impl From<FrequencyRange> for Range<Frequency>
Source§fn from(range: FrequencyRange) -> Self
fn from(range: FrequencyRange) -> Self
Converts to this type from the input type.
Source§impl From<FrequencyRange> for Range<f64>
impl From<FrequencyRange> for Range<f64>
Source§fn from(range: FrequencyRange) -> Self
fn from(range: FrequencyRange) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FrequencyRange
impl PartialEq for FrequencyRange
Source§impl Serialize for FrequencyRange
impl Serialize for FrequencyRange
impl StructuralPartialEq for FrequencyRange
Auto Trait Implementations§
impl Freeze for FrequencyRange
impl RefUnwindSafe for FrequencyRange
impl Send for FrequencyRange
impl Sync for FrequencyRange
impl Unpin for FrequencyRange
impl UnsafeUnpin for FrequencyRange
impl UnwindSafe for FrequencyRange
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