pub struct GiB(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl GiB
impl GiB
pub const fn new(val: u64) -> Self
pub const fn as_u64(&self) -> u64
pub const fn as_bytes(self) -> Bytes
pub const fn as_kib(self) -> KiB
pub const fn as_mib(self) -> MiB
pub const fn as_gib(self) -> GiB
pub const fn as_tib(self) -> TiB
pub const fn as_pib(self) -> PiB
Trait Implementations§
Source§impl AddAssign for GiB
impl AddAssign for GiB
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+= operation. Read moreimpl Copy for GiB
Source§impl DivAssign<u64> for GiB
impl DivAssign<u64> for GiB
Source§fn div_assign(&mut self, rhs: u64)
fn div_assign(&mut self, rhs: u64)
Performs the
/= operation. Read moreimpl Eq for GiB
Source§impl MulAssign<u64> for GiB
impl MulAssign<u64> for GiB
Source§fn mul_assign(&mut self, rhs: u64)
fn mul_assign(&mut self, rhs: u64)
Performs the
*= operation. Read moreSource§impl Ord for GiB
impl Ord for GiB
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for GiB
impl PartialOrd for GiB
Source§impl PartialOrd<Bytes> for GiB
impl PartialOrd<Bytes> for GiB
Source§impl PartialOrd<GiB> for Bytes
impl PartialOrd<GiB> for Bytes
Source§impl PartialOrd<GiB> for KiB
impl PartialOrd<GiB> for KiB
Source§impl PartialOrd<GiB> for MiB
impl PartialOrd<GiB> for MiB
Source§impl PartialOrd<GiB> for TiB
impl PartialOrd<GiB> for TiB
Source§impl PartialOrd<GiB> for PiB
impl PartialOrd<GiB> for PiB
Source§impl PartialOrd<KiB> for GiB
impl PartialOrd<KiB> for GiB
Source§impl PartialOrd<MiB> for GiB
impl PartialOrd<MiB> for GiB
Source§impl PartialOrd<PiB> for GiB
impl PartialOrd<PiB> for GiB
Source§impl PartialOrd<TiB> for GiB
impl PartialOrd<TiB> for GiB
Source§impl RemAssign for GiB
impl RemAssign for GiB
Source§fn rem_assign(&mut self, rhs: Self)
fn rem_assign(&mut self, rhs: Self)
Performs the
%= operation. Read moreimpl StructuralPartialEq for GiB
Auto Trait Implementations§
impl Freeze for GiB
impl RefUnwindSafe for GiB
impl Send for GiB
impl Sync for GiB
impl Unpin for GiB
impl UnsafeUnpin for GiB
impl UnwindSafe for GiB
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