ToByteUnit

Trait ToByteUnit 

Source
pub trait ToByteUnit<T: Copy> {
    // Required method
    fn to_byteunit(self, byte: ByteUnit<()>) -> ByteUnit<T>;
}
Expand description

Trait providing generic abstraction to encapsulate primitive in a ByteUnit

Required Methods§

Source

fn to_byteunit(self, byte: ByteUnit<()>) -> ByteUnit<T>

Implementations on Foreign Types§

Source§

impl ToByteUnit<i32> for i32
where i64: From<i32>,

Source§

impl ToByteUnit<i64> for i64
where i64: From<i64>,

Source§

impl ToByteUnit<u32> for u32
where i64: From<u32>,

Implementors§