pub struct ByteSizeConf(/* private fields */);Implementations§
Source§impl ByteSizeConf
impl ByteSizeConf
pub fn of_bytes(bytes: u64) -> Self
pub fn of_kilobytes(kilobytes: u64) -> Self
pub fn of_kibibytes(kibibytes: u64) -> Self
pub fn of_megabytes(megabytes: u64) -> Self
pub fn of_mebibytes(mebibytes: u64) -> Self
pub fn of_gigabytes(gigabytes: u64) -> Self
pub fn of_gibibytes(gibibytes: u64) -> Self
pub fn as_bytes(&self) -> u64
pub fn as_kilobytes(&self) -> u64
pub fn as_kibibytes(&self) -> u64
pub fn as_megabytes(&self) -> u64
pub fn as_mebibytes(&self) -> u64
pub fn as_gigabytes(&self) -> u64
pub fn as_gibibytes(&self) -> u64
Trait Implementations§
Source§impl Clone for ByteSizeConf
impl Clone for ByteSizeConf
Source§fn clone(&self) -> ByteSizeConf
fn clone(&self) -> ByteSizeConf
Returns a duplicate 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 ByteSizeConf
impl Debug for ByteSizeConf
Source§impl Default for ByteSizeConf
impl Default for ByteSizeConf
Source§fn default() -> ByteSizeConf
fn default() -> ByteSizeConf
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ByteSizeConf
impl<'de> Deserialize<'de> for ByteSizeConf
Source§fn deserialize<D>(deserializer: D) -> Result<ByteSizeConf, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<ByteSizeConf, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ByteSizeConf
impl Display for ByteSizeConf
Auto Trait Implementations§
impl Freeze for ByteSizeConf
impl RefUnwindSafe for ByteSizeConf
impl Send for ByteSizeConf
impl Sync for ByteSizeConf
impl Unpin for ByteSizeConf
impl UnwindSafe for ByteSizeConf
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