Debian Codegraph @

src/impl_style.rs

raw symbols SCIP
1 use craterust-analyzer cargo humansize 2.1.3 crate/::{FormatSizeOptionsrust-analyzer cargo humansize 2.1.3 options/FormatSizeOptions#, SizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/SizeFormatter#, ISizeFormatterrust-analyzer cargo humansize 2.1.3 formatters/ISizeFormatter#, Signedrust-analyzer cargo humansize 2.1.3 numeric_traits/Signed#, ToF64rust-analyzer cargo humansize 2.1.3 numeric_traits/ToF64#, Unsignedrust-analyzer cargo humansize 2.1.3 numeric_traits/Unsigned#};
2 use alloc::string::String;
3
4 pub trait FormatSizerust-analyzer cargo humansize 2.1.3 impl_style/FormatSize#<T> {
5 fn format_sizerust-analyzer cargo humansize 2.1.3 impl_style/FormatSize#format_size().(&self, opts: FormatSizeOptionsrust-analyzer cargo humansize 2.1.3 options/FormatSizeOptions#) -> String;
6 }
7
8 pub trait FormatSizeIrust-analyzer cargo humansize 2.1.3 impl_style/FormatSizeI#<T> {
9 fn format_size_irust-analyzer cargo humansize 2.1.3 impl_style/FormatSizeI#format_size_i().(&self, opts: FormatSizeOptionsrust-analyzer cargo humansize 2.1.3 options/FormatSizeOptions#) -> String;
10 }
11
12 impl<T: ToF64rust-analyzer cargo humansize 2.1.3 numeric_traits/ToF64# + Unsignedrust-analyzer cargo humansize 2.1.3 numeric_traits/Unsigned# + Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> FormatSizerust-analyzer cargo humansize 2.1.3 impl_style/FormatSize#<T> for T {
13 fn format_sizerust-analyzer cargo humansize 2.1.3 impl_style/impl#[T][`FormatSize<Self>`]format_size().(&self, opts: FormatSizeOptionsrust-analyzer cargo humansize 2.1.3 options/FormatSizeOptions#) -> String {
14 format!("{}", SizeFormatter::new(*self, opts))
15 }
16 }
17
18 impl<T: ToF64rust-analyzer cargo humansize 2.1.3 numeric_traits/ToF64# + Signedrust-analyzer cargo humansize 2.1.3 numeric_traits/Signed# + Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy#> FormatSizeIrust-analyzer cargo humansize 2.1.3 impl_style/FormatSizeI#<T> for T {
19 fn format_size_irust-analyzer cargo humansize 2.1.3 impl_style/impl#[T][`FormatSizeI<Self>`]format_size_i().(&self, opts: FormatSizeOptionsrust-analyzer cargo humansize 2.1.3 options/FormatSizeOptions#) -> String {
20 format!("{}", ISizeFormatter::new(*self, opts))
21 }
22 }