Debian Codegraph @

tests/common.rs

raw symbols SCIP
1 #[allow(unused)]
2 pub fn hashrust-analyzer cargo qoi 0.4.1 hash().<const N: usize>(px: [u8; N]) -> u8 {
3 let r = px[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
4 let g = px[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
5 let b = px[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
6 let a = if N rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge().>=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[usize][`PartialOrd<Self>`]ge().4 { px[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index(). } else { 0xff };
7 let rm = r.wrapping_mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_mul().(3);
8 let gm = g.wrapping_mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_mul().(5);
9 let bm = b.wrapping_mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_mul().(7);
10 let am = a.wrapping_mulrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_mul().(11);
11 rm.wrapping_addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_add().(gm).wrapping_addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_add().(bm).wrapping_addrust-analyzer cargo core https://github.com/rust-lang/rust/library/core num/impl#[u8]wrapping_add().(am) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`Rem<Self>`]rem().%rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`Rem<Self>`]rem(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u8][`Rem<Self>`]rem().64
12 }