pub struct Frequency(pub u64);Expand description
Frequency.
Tuple Fields§
§0: u64Implementations§
Source§impl Frequency
impl Frequency
Sourcepub const MAX_STRING_LEN: usize = 24usize
pub const MAX_STRING_LEN: usize = 24usize
Max. length in string form.
Sourcepub const MIN_PREFIX: Prefix = crate::si::Prefix::Nano
pub const MIN_PREFIX: Prefix = crate::si::Prefix::Nano
Minimum SI prefix.
Sourcepub const MAX_PREFIX: Prefix = crate::si::Prefix::Giga
pub const MAX_PREFIX: Prefix = crate::si::Prefix::Giga
Maximum SI prefix.
Sourcepub const fn from_si(value: u64) -> Self
pub const fn from_si(value: u64) -> Self
Convert from SI value without prefix. Panics if the prefix is out of range.
Sourcepub const fn with_si_prefix(value: u64, prefix: Prefix) -> Self
pub const fn with_si_prefix(value: u64, prefix: Prefix) -> Self
Convert from SI value with prefix. Panics if the prefix is out of range.
Trait Implementations§
Source§impl<'a> Deserialize<'a> for Frequency
impl<'a> Deserialize<'a> for Frequency
Source§fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(d: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Frequency
impl RefUnwindSafe for Frequency
impl Send for Frequency
impl Sync for Frequency
impl Unpin for Frequency
impl UnsafeUnpin for Frequency
impl UnwindSafe for Frequency
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