pub enum ByteUnit {
Byte,
Kilo,
Mega,
Giga,
Tera,
Peta,
}Variants§
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ByteUnit
impl<'de> Deserialize<'de> for ByteUnit
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 Ord for ByteUnit
impl Ord for ByteUnit
Source§impl PartialOrd for ByteUnit
impl PartialOrd for ByteUnit
impl Copy for ByteUnit
impl Eq for ByteUnit
impl StructuralPartialEq for ByteUnit
Auto Trait Implementations§
impl Freeze for ByteUnit
impl RefUnwindSafe for ByteUnit
impl Send for ByteUnit
impl Sync for ByteUnit
impl Unpin for ByteUnit
impl UnwindSafe for ByteUnit
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