Struct tikv_util::config::ReadableSize[][src]

pub struct ReadableSize(pub u64);

Implementations

impl ReadableSize[src]

pub const fn kb(count: u64) -> ReadableSize[src]

pub const fn mb(count: u64) -> ReadableSize[src]

pub const fn gb(count: u64) -> ReadableSize[src]

pub const fn as_mb(self) -> u64[src]

Trait Implementations

impl Clone for ReadableSize[src]

impl Copy for ReadableSize[src]

impl Debug for ReadableSize[src]

impl<'de> Deserialize<'de> for ReadableSize[src]

impl Div<ReadableSize> for ReadableSize[src]

type Output = u64

The resulting type after applying the / operator.

impl Div<u64> for ReadableSize[src]

type Output = ReadableSize

The resulting type after applying the / operator.

impl From<ConfigValue> for ReadableSize[src]

impl FromStr for ReadableSize[src]

type Err = String

The associated error which can be returned from parsing.

impl Mul<u64> for ReadableSize[src]

type Output = ReadableSize

The resulting type after applying the * operator.

impl PartialEq<ReadableSize> for ReadableSize[src]

impl Serialize for ReadableSize[src]

impl StructuralPartialEq for ReadableSize[src]

Auto Trait Implementations

impl RefUnwindSafe for ReadableSize

impl Send for ReadableSize

impl Sync for ReadableSize

impl Unpin for ReadableSize

impl UnwindSafe for ReadableSize

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]