pub struct DigitalValue {
pub value: f64,
/* private fields */
}
Fields§
§value: f64
Implementations§
Source§impl DigitalValue
impl DigitalValue
pub fn to_bytes(self) -> DigitalValue
pub fn to_kilobytes(self) -> DigitalValue
pub fn to_megabytes(self) -> DigitalValue
pub fn to_gigabytes(self) -> DigitalValue
Trait Implementations§
Source§impl Clone for DigitalValue
impl Clone for DigitalValue
Source§fn clone(&self) -> DigitalValue
fn clone(&self) -> DigitalValue
Returns a copy 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 DigitalValue
impl Debug for DigitalValue
Source§impl<'de> Deserialize<'de> for DigitalValue
impl<'de> Deserialize<'de> for DigitalValue
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 DigitalValue
impl Display for DigitalValue
Source§impl Hash for DigitalValue
impl Hash for DigitalValue
Source§impl Ord for DigitalValue
impl Ord for DigitalValue
Source§impl PartialEq for DigitalValue
impl PartialEq for DigitalValue
Source§impl PartialOrd for DigitalValue
impl PartialOrd for DigitalValue
Source§impl Serialize for DigitalValue
impl Serialize for DigitalValue
impl Eq for DigitalValue
impl StructuralPartialEq for DigitalValue
Auto Trait Implementations§
impl Freeze for DigitalValue
impl RefUnwindSafe for DigitalValue
impl Send for DigitalValue
impl Sync for DigitalValue
impl Unpin for DigitalValue
impl UnwindSafe for DigitalValue
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