pub struct FrequencyRating { /* private fields */ }Expand description
A frequency rating in hertz.
Implementations§
Source§impl FrequencyRating
impl FrequencyRating
Sourcepub fn new_hertz(value: f64) -> Result<Self, RatingError>
pub fn new_hertz(value: f64) -> Result<Self, RatingError>
Creates a non-negative frequency rating in hertz.
§Errors
Returns RatingError when the value is not finite or is negative.
Trait Implementations§
Source§impl Clone for FrequencyRating
impl Clone for FrequencyRating
Source§fn clone(&self) -> FrequencyRating
fn clone(&self) -> FrequencyRating
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FrequencyRating
impl Debug for FrequencyRating
Source§impl Display for FrequencyRating
impl Display for FrequencyRating
Source§impl PartialEq for FrequencyRating
impl PartialEq for FrequencyRating
Source§fn eq(&self, other: &FrequencyRating) -> bool
fn eq(&self, other: &FrequencyRating) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FrequencyRating
impl PartialOrd for FrequencyRating
impl Copy for FrequencyRating
impl StructuralPartialEq for FrequencyRating
Auto Trait Implementations§
impl Freeze for FrequencyRating
impl RefUnwindSafe for FrequencyRating
impl Send for FrequencyRating
impl Sync for FrequencyRating
impl Unpin for FrequencyRating
impl UnsafeUnpin for FrequencyRating
impl UnwindSafe for FrequencyRating
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