edith_codecs
Clone
https://git.tahinli.com/Tahinli/edith_codecs.git
0 watching0 forksRust370.3 MiBf44b458Tahinli3 months ago649 commits
| 1 | //! `flacenc::error`: verification wrappers and the error types the encoder |
| 2 | //! hands back. |
| 3 | |
| 4 | use fmt; |
| 5 | use PhantomData; |
| 6 | |
| 7 | use crateBitSink; |
| 8 | |
| 9 | /// A value that has passed [`Verify::verify`]. |
| 10 | /// |
| 11 | /// Derefs to the value, which is how callers read `config.block_size` off a |
| 12 | /// verified config. |
| 13 | |
| 14 | ; |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | /// Configuration structs that can check their own consistency. |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | /// A configuration field that is out of range, with the path to it. |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | /// Encoding failed: either the source or the configuration. |
| 74 | |
| 75 | String); |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | /// Writing a component to a [`BitSink`] failed. |
| 86 | /// |
| 87 | /// Generic over the sink, as the incumbent is, so `write` signatures match; our |
| 88 | /// only sink is infallible, so this is never constructed in practice. |
| 89 | |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | |
| 110 |