pub struct FormattedBandwidth(/* private fields */);Expand description
A wrapper type that allows you to Display a Bandwidth
Implementations§
Source§impl FormattedBandwidth
impl FormattedBandwidth
Sourcepub fn get_ref(&self) -> &Bandwidth
pub fn get_ref(&self) -> &Bandwidth
Returns a reference to the Bandwidth that is being formatted.
Sourcepub fn fmt_integer(&self, f: &mut Formatter<'_>) -> Result
pub fn fmt_integer(&self, f: &mut Formatter<'_>) -> Result
Enabling the display-integer feature will display integer values only
This method is preserved for backward compatibility and custom formatting.
Sourcepub fn fmt_decimal(&self, f: &mut Formatter<'_>) -> Result
pub fn fmt_decimal(&self, f: &mut Formatter<'_>) -> Result
Disabling the display-integer feature will display decimal values
This method is preserved for custom formatting.
Trait Implementations§
Source§impl Clone for FormattedBandwidth
impl Clone for FormattedBandwidth
Source§fn clone(&self) -> FormattedBandwidth
fn clone(&self) -> FormattedBandwidth
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 FormattedBandwidth
impl Debug for FormattedBandwidth
Auto Trait Implementations§
impl Freeze for FormattedBandwidth
impl RefUnwindSafe for FormattedBandwidth
impl Send for FormattedBandwidth
impl Sync for FormattedBandwidth
impl Unpin for FormattedBandwidth
impl UnwindSafe for FormattedBandwidth
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