Skip to main content

BigByte

Trait BigByte 

Source
pub trait BigByte {
    // Required method
    fn big_byte(&self, precision: usize) -> String;
}
Expand description

Makes a type representable as a byte count.

Required Methods§

Source

fn big_byte(&self, precision: usize) -> String

Represents self as a byte count.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl BigByte for f32

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for f64

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for u8

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for u16

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for u32

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for u64

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for u128

Source§

fn big_byte(&self, precision: usize) -> String

Source§

impl BigByte for usize

Source§

fn big_byte(&self, precision: usize) -> String

Implementors§