Debian Codegraph @

src/tables/mod.rs

raw symbols SCIP
1 pub mod generalrust-analyzer cargo ucd 0.1.1 tables/general/;
2 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::generalrust-analyzer cargo ucd 0.1.1 tables/general/::*;
3
4 pub mod bidirust-analyzer cargo ucd 0.1.1 tables/bidi/;
5 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::bidirust-analyzer cargo ucd 0.1.1 tables/bidi/::*;
6
7 pub mod miscrust-analyzer cargo ucd 0.1.1 tables/misc/;
8 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::miscrust-analyzer cargo ucd 0.1.1 tables/misc/::*;
9
10 pub mod scriptsrust-analyzer cargo ucd 0.1.1 tables/scripts/;
11 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::scriptsrust-analyzer cargo ucd 0.1.1 tables/scripts/::*;
12
13 pub mod functionrust-analyzer cargo ucd 0.1.1 tables/function/;
14 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::functionrust-analyzer cargo ucd 0.1.1 tables/function/::*;
15
16 pub mod boolrust-analyzer cargo ucd 0.1.1 tables/bool/;
17 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::boolrust-analyzer cargo ucd 0.1.1 tables/bool/::*;
18
19 pub mod remrust-analyzer cargo ucd 0.1.1 tables/rem/;
20 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::remrust-analyzer cargo ucd 0.1.1 tables/rem/::*;
21
22 pub mod decomprust-analyzer cargo ucd 0.1.1 tables/decomp/;
23 pub use selfrust-analyzer cargo ucd 0.1.1 tables/::decomprust-analyzer cargo ucd 0.1.1 tables/decomp/::*;
24
25 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/::Orderingrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#::{Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal#, Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less#, Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater#};
26 use corerust-analyzer cargo core https://github.com/rust-lang/rust/library/core crate/::charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core char/;
27
28 pub trait Searchrust-analyzer cargo ucd 0.1.1 tables/Search# {
29 type Trust-analyzer cargo ucd 0.1.1 tables/Search#T#: Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#;
30 fn searchrust-analyzer cargo ucd 0.1.1 tables/Search#search().(&self, cp: char) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<Self::Trust-analyzer cargo ucd 0.1.1 tables/Search#T#>;
31 fn includesrust-analyzer cargo ucd 0.1.1 tables/Search#includes().(&self, cp: char) -> bool {
32 match self.searchrust-analyzer cargo ucd 0.1.1 tables/Search#search().(cp) {
33 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(_) => true,
34 Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None# => false
35 }
36 }
37 }
38
39 impl<S: Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#> Searchrust-analyzer cargo ucd 0.1.1 tables/Search# for [((u8,u8,u8),(u8,u8,u8),S)] {
40 type Trust-analyzer cargo ucd 0.1.1 tables/impl#[`[((u8, u8, u8), (u8, u8, u8), S)]`][Search]T# = S;
41 fn searchrust-analyzer cargo ucd 0.1.1 tables/impl#[`[((u8, u8, u8), (u8, u8, u8), S)]`][Search]search().(&self, cp: char) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<S> {
42 let cp = cp as u32;
43 match self.binary_search_byrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]binary_search_by().(|&((rb1,rb2,rb3), (re1,re2,re3), _)| {
44 let rb: u32 = (rb1 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().65536 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(rb2 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(rb3 as u32);
45 let re: u32 = (re1 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().65536 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(re2 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(re3 as u32);
46 if rb rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().cp && cp rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().<=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]le().re { Equalrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Equal# }
47 else if re rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]lt().cp { Lessrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Less# }
48 else { Greaterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Ordering#Greater# }
49 }) {
50 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(idx) => {
51 let (_, _, ref v) = self[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().idx]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().;
52 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(v.clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#clone().())
53 },
54 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
55 }
56 }
57 }
58
59 impl<S: Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#> Searchrust-analyzer cargo ucd 0.1.1 tables/Search# for [((u8,u8,u8),S)] {
60 type Trust-analyzer cargo ucd 0.1.1 tables/impl#[`[((u8, u8, u8), S)]`][Search]T# = S;
61 fn searchrust-analyzer cargo ucd 0.1.1 tables/impl#[`[((u8, u8, u8), S)]`][Search]search().(&self, cp: char) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<S> {
62 let ca = cp as u32;
63 match self.binary_search_byrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]binary_search_by().(|&((cb1,cb2,cb3), _)| {
64 let cb: u32 = (cb1 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().65536 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(cb2 as u32)*rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Mul<Self>`]mul().256 rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().+rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[u32][`Add<Self>`]add().(cb3 as u32);
65 cb.cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][Ord]cmp().(&ca)
66 }) {
67 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(idx) => {
68 let (_, ref v) = self[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().idx]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().;
69 Somerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#Some#(v.clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone#clone().())
70 },
71 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
72 }
73 }
74 }
75
76 impl Searchrust-analyzer cargo ucd 0.1.1 tables/Search# for [(u16,u16)] {
77 type Trust-analyzer cargo ucd 0.1.1 tables/impl#[`[(u16, u16)]`][Search]T# = char;
78 fn searchrust-analyzer cargo ucd 0.1.1 tables/impl#[`[(u16, u16)]`][Search]search().(&self, cp: char) -> Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<char> {
79 let ca = cp as u32;
80 let cb = ca as u16;
81
82 if ca rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]gt().>rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]gt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u32][`PartialOrd<Self>`]gt().65536 { return Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#; }
83
84 match self.binary_search_byrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/impl#[`[T]`]binary_search_by().(|&(cc,_)| cc.cmprust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[u16][Ord]cmp().(&cb)) {
85 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(idx) => {
86 let (_, v) = self[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().idx]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index().;
87 charrust-analyzer cargo core https://github.com/rust-lang/rust/library/core char/::from_u32rust-analyzer cargo core https://github.com/rust-lang/rust/library/core char/from_u32().(v as u32)
88 },
89 _ => Nonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#None#
90 }
91 }
92 }