Debian Codegraph @

src/ecl.rs

raw symbols SCIP
1 //! Contains all different levels of quality.
2 //! And allows to find easily max bits per version/quality pair
3
4 #![deny(unsafe_code)]
5 #![warn(missing_docs)]
6
7 use stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Write#;
8
9 /// Error Correction Coding has 4 levels
10 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
11 #[allow(dead_code)]
12 #[cfg_attr(feature = "wasm-bindgen", wasm_bindgen::prelude::wasm_bindgen)]
13 pub enum ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL# {
14 /// Low, 7%
15 Lrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#L#,
16 /// Medium, 15%
17 Mrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#M#,
18 /// Quartile, 25%
19 Qrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#Q#,
20 /// High, 30%
21 Hrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#H#,
22 }
23
24 impl corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Displayrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Display# for ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL# {
25 fn fmtrust-analyzer cargo fast_qr 0.13.1 ecl/impl#[ECL][Display]fmt().(&self, f: &mut corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#) -> corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::fmtrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
26 match self {
27 ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#::Lrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#L# => f.write_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'_>`][Write]write_char().('L'),
28 ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#::Mrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#M# => f.write_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'_>`][Write]write_char().('M'),
29 ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#::Qrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#Q# => f.write_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'_>`][Write]write_char().('Q'),
30 ECLrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#::Hrust-analyzer cargo fast_qr 0.13.1 ecl/ECL#H# => f.write_charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'_>`][Write]write_char().('H'),
31 }
32 }
33 }