Debian Codegraph @

src/forgiving_base64.rs

raw symbols SCIP
1 //! <https://infra.spec.whatwg.org/#forgiving-base64-decode>
2
3 use allocrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc crate/::vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/::Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#;
4 use 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/;
5
6 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
7 pub struct InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64#(InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#);
8
9 impl 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 InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64# {
10 fn fmtrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[InvalidBase64][Display]fmt().(&self, f: &mut 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#<'_>) -> 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# {
11 match self.0rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64#0. {
12 InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::UnexpectedSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#UnexpectedSymbol#(code_point) => {
13 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "symbol with codepoint {} not expected", code_point)
14 }
15 InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::AlphabetSymbolAfterPaddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#AlphabetSymbolAfterPadding# => {
16 writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "alphabet symbol present after padding")
17 }
18 InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::LoneAlphabetSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#LoneAlphabetSymbol# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "lone alphabet symbol present"),
19 InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::Paddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#Padding# => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "incorrect padding"),
20 }
21 }
22 }
23
24 #[cfg(feature = "std")]
25 impl stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64# {}
26
27 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
28 enum InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details# {
29 UnexpectedSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#UnexpectedSymbol#(u8),
30 AlphabetSymbolAfterPaddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#AlphabetSymbolAfterPadding#,
31 LoneAlphabetSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#LoneAlphabetSymbol#,
32 Paddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#Padding#,
33 }
34
35 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:)]
36 pub enum DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E> {
37 InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#InvalidBase64#(InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64#),
38 WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#(E),
39 }
40
41 impl<E: 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#> 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 DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E> {
42 fn fmtrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][Display]fmt().(&self, f: &mut 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#<'_>) -> 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# {
43 match self {
44 Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][Display]::InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#InvalidBase64#(inner) => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "base64 not valid: {}", inner),
45 Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][Display]::WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#(err) => writerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/write!!(f, "write error: {}", err),
46 }
47 }
48 }
49
50 #[cfg(feature = "std")]
51 impl<E: stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error#> stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::errorrust-analyzer cargo std https://github.com/rust-lang/rust/library/std error/::Errorrust-analyzer cargo core https://github.com/rust-lang/rust/library/core error/Error# for DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E> {}
52
53 impl<E> Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#> for DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E> {
54 fn fromrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][`From<InvalidBase64Details>`]from().(e: InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#) -> Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][`From<InvalidBase64Details>`] {
55 Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`DecodeError<E>`][`From<InvalidBase64Details>`]::InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#InvalidBase64#(InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64#(e))
56 }
57 }
58
59 pub(craterust-analyzer cargo data-url 0.3.2 crate/) enum Impossiblerust-analyzer cargo data-url 0.3.2 forgiving_base64/Impossible# {}
60
61 impl Fromrust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/From#<DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<Impossiblerust-analyzer cargo data-url 0.3.2 forgiving_base64/Impossible#>> for InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64# {
62 fn fromrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[InvalidBase64][`From<DecodeError<Impossible>>`]from().(e: DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<Impossiblerust-analyzer cargo data-url 0.3.2 forgiving_base64/Impossible#>) -> Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[InvalidBase64][`From<DecodeError<Impossible>>`] {
63 match e {
64 DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#::InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#InvalidBase64#(e) => e,
65 DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#::WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#(e) => match e {},
66 }
67 }
68 }
69
70 /// `input` is assumed to be in an ASCII-compatible encoding
71 pub fn decode_to_vecrust-analyzer cargo data-url 0.3.2 forgiving_base64/decode_to_vec().(input: &[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#<u8>, InvalidBase64rust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64#> {
72 let mut v = Vecrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/Vec#::newrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T>`]new().();
73 {
74 let mut decoder = Decoderrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#::newrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]new().(|bytes| {
75 v.extend_from_slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc vec/impl#[`Vec<T, A>`]extend_from_slice().(bytes);
76 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
77 });
78 decoder.feedrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]feed().(input)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
79 decoder.finishrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]finish().()?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
80 }
81 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(v)
82 }
83
84 /// <https://infra.spec.whatwg.org/#forgiving-base64-decode>
85 pub struct Decoderrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#<F, E>
86 where
87 F: FnMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnMut#(&[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), E>,
88 {
89 write_bytesrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#write_bytes.: F,
90 bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer.: u32,
91 buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length.: u8,
92 padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols.: u8,
93 }
94
95 impl<F, E> Decoderrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#<F, E>
96 where
97 F: FnMutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/function/FnMut#(&[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), E>,
98 {
99 pub fn newrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]new().(write_bytes: F) -> Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`] {
100 Selfrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`] {
101 write_bytesrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#write_bytes.,
102 bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer.: 0,
103 buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length.: 0,
104 padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols.: 0,
105 }
106 }
107
108 /// Feed to the decoder partial input in an ASCII-compatible encoding
109 pub fn feedrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]feed().(&mut self, input: &[u8]) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E>> {
110 for &byte in input.iterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]iter().() {
111 let value = BASE64_DECODE_TABLErust-analyzer cargo data-url 0.3.2 forgiving_base64/BASE64_DECODE_TABLE.[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().byte as usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
112 if value rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i8][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i8][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i8][`PartialOrd<Self>`]lt().0 {
113 // A character that’s not part of the alphabet
114
115 // Remove ASCII whitespace
116 if matchesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/matches!!(byte, b' ' | b'\t' | b'\n' | b'\r' | b'\x0C') {
117 continue;
118 }
119
120 if byte rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialEq<Self>`]eq().b'=' {
121 self.padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols. = self.padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols..saturating_addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]saturating_add().(1);
122 continue;
123 }
124
125 return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::UnexpectedSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#UnexpectedSymbol#(byte).intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().());
126 }
127 if self.padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]gt().0 {
128 return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::AlphabetSymbolAfterPaddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#AlphabetSymbolAfterPadding#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().());
129 }
130 self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`ShlAssign<i32>`]shl_assign().<<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`ShlAssign<i32>`]shl_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`ShlAssign<i32>`]shl_assign().6;
131 self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`BitOrAssign<Self>`]bitor_assign().value as u32;
132 // 18 before incrementing means we’ve just reached 24
133 if self.buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u8][`PartialOrd<Self>`]lt().18 {
134 self.buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`AddAssign<Self>`]add_assign().+=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`AddAssign<Self>`]add_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`AddAssign<Self>`]add_assign().6;
135 } else {
136 // We’ve accumulated four times 6 bits, which equals three times 8 bits.
137 let byte_buffer = [
138 (self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().16) as u8,
139 (self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().8) as u8,
140 self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. as u8,
141 ];
142 (self.write_bytesrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#write_bytes.)(&byte_buffer).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#::WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
143 self.buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length. = 0;
144 // No need to reset bit_buffer,
145 // since next time we’re only gonna read relevant bits.
146 }
147 }
148 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
149 }
150
151 /// Call this to signal the end of the input
152 pub fn finishrust-analyzer cargo data-url 0.3.2 forgiving_base64/impl#[`Decoder<F, E>`]finish().(mut self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#<E>> {
153 match (self.buffer_bit_lengthrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#buffer_bit_length., self.padding_symbolsrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#padding_symbols.) {
154 (0, 0) => {
155 // A multiple of four of alphabet symbols, and nothing else.
156 }
157 (12, 2) | (12, 0) => {
158 // A multiple of four of alphabet symbols, followed by two more symbols,
159 // optionally followed by two padding characters (which make a total multiple of four).
160 let byte_buffer = [(self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().4) as u8];
161 (self.write_bytesrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#write_bytes.)(&byte_buffer).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#::WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
162 }
163 (18, 1) | (18, 0) => {
164 // A multiple of four of alphabet symbols, followed by three more symbols,
165 // optionally followed by one padding character (which make a total multiple of four).
166 let byte_buffer = [(self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().10) as u8, (self.bit_bufferrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#bit_buffer. rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().>>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u32][`Shr<i32>`]shr().2) as u8];
167 (self.write_bytesrust-analyzer cargo data-url 0.3.2 forgiving_base64/Decoder#write_bytes.)(&byte_buffer).map_errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]map_err().(DecodeErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#::WriteErrorrust-analyzer cargo data-url 0.3.2 forgiving_base64/DecodeError#WriteError#)?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().;
168 }
169 (6, _) => return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::LoneAlphabetSymbolrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#LoneAlphabetSymbol#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
170 _ => return Errrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Err#(InvalidBase64Detailsrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#::Paddingrust-analyzer cargo data-url 0.3.2 forgiving_base64/InvalidBase64Details#Padding#.intorust-analyzer cargo core https://github.com/rust-lang/rust/library/core convert/impl#[T][`Into<U>`]into().()),
171 }
172 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(())
173 }
174 }
175
176 /// Generated by `make_base64_decode_table.py` based on "Table 1: The Base 64 Alphabet"
177 /// at <https://tools.ietf.org/html/rfc4648#section-4>
178 ///
179 /// Array indices are the byte value of symbols.
180 /// Array values are their positions in the base64 alphabet,
181 /// or -1 for symbols not in the alphabet.
182 /// The position contributes 6 bits to the decoded bytes.
183 #[rustfmt::skip]
184 const BASE64_DECODE_TABLErust-analyzer cargo data-url 0.3.2 forgiving_base64/BASE64_DECODE_TABLE.: [i8; 256] = [
185 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
186 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
187 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, 62, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, 63,
188 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
189 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
190 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
191 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
192 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
193 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
194 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
195 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
196 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
197 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
198 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
199 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
200 -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1, -rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i8][Neg]neg().1,
201 ];