Debian Codegraph @

examples/sizes.rs

raw symbols SCIP
1 extern crate humansizerust-analyzer cargo humansize 2.1.3 humansize/;
2
3 use humansizerust-analyzer cargo humansize 2.1.3 crate/::{format_size, format_size_i, SizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/SizeFormatter#, ISizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/ISizeFormatter#, BINARYrust-analyzer cargo humansize 2.1.3 options/defaults/BINARY., DECIMALrust-analyzer cargo humansize 2.1.3 options/defaults/DECIMAL., WINDOWSrust-analyzer cargo humansize 2.1.3 options/defaults/WINDOWS.};
4
5 fn mainrust-analyzer cargo humansize 2.1.3 main().() {
6 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size(5456usize, BINARYrust-analyzer cargo humansize 2.1.3 options/defaults/BINARY.));
7 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size(1024usize, DECIMALrust-analyzer cargo humansize 2.1.3 options/defaults/DECIMAL.));
8 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size(1000usize, WINDOWSrust-analyzer cargo humansize 2.1.3 options/defaults/WINDOWS.));
9
10 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size(1_023_654_123_654_u64, BINARYrust-analyzer cargo humansize 2.1.3 options/defaults/BINARY.));
11 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size(123456789usize, DECIMALrust-analyzer cargo humansize 2.1.3 options/defaults/DECIMAL.));
12 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", format_size_i(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i32][Neg]neg().123456789, WINDOWSrust-analyzer cargo humansize 2.1.3 options/defaults/WINDOWS.));
13
14 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", SizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/SizeFormatter#::newrust-analyzer cargo humansize 2.1.3 formatters/impl#[`SizeFormatter<V, O>`]new().(1234u32, BINARYrust-analyzer cargo humansize 2.1.3 options/defaults/BINARY.));
15 printlnrust-analyzer cargo std https://github.com/rust-lang/rust/library/std macros/println!!("{}", ISizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/ISizeFormatter#::newrust-analyzer cargo humansize 2.1.3 formatters/impl#[`ISizeFormatter<V, O>`]new().(1234, BINARYrust-analyzer cargo humansize 2.1.3 options/defaults/BINARY.));
16 }