fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self.prefix {
            Prefix::Unit => write!(f, "{}", self.mantissa),
            _ => write!(f, "{} {}", self.mantissa, self.prefix),
        }
    }
/// A basic but limited way to display the value; it does not allow
/// mantissa formatting. Consider using the
/// [`format_value!()`][`crate::format_value`] macro instead.
///
/// # Example
///
/// ```
/// use std::convert::From;
/// use si_scale::prelude::Value;
///
/// let value: Value = 5.3e5.into();
///
/// let actual = format!("{}", value);
/// let expected = "530 k".to_string();
/// assert_eq!(actual, expected);
/// ```
///
A basic but limited way to display the value; it does not allow
mantissa formatting.
A basic but limited way to display the value ; it does not allow mantissa formatting .
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        match self.prefix {
            Prefix::Unit => write!(f, "{}", self.mantissa),
            _ => write!(f, "{} {}", self.mantissa, self.prefix),
        }
    }
fn fmt ( & self , f : & mut fmt :: Formatter < ' _ > ) -> fmt :: Result { match self . prefix { Prefix :: Unit => write ! ( f " " self mantissa ) , _ => write ! ( f " " self mantissa self prefix ) , } }
A basic but limited way to display the value; it does not allow
mantissa formatting.
A basic but limited way to display the value ; it does not allow mantissa formatting .
&self
f
&mut fmt::Formatter<'_>
example
```
use std::convert::From;
use si_scale::prelude::Value.



let actual = format!("{}", value);
let expected = "530 k".to_string();
assert_eq!(actual, expected);
```
` ` ` use std :: convert :: From ; use si_scale :: prelude :: Value . let actual = format! ( " {} " value ) ; let expected = " 530 k " . to_string () ; assert_eq! ( actual expected ) ; ` ` `