Debian Codegraph @

src/common.rs

raw symbols SCIP
1 #[inline]
2 pub(craterust-analyzer cargo deb822-lossless 0.5.18 crate/) fn is_indentrust-analyzer cargo deb822-lossless 0.5.18 common/is_indent().(c: char) -> bool {
3 // deb822(5) says that continuation lines
4 // start with a space (U+0020) or a tab (U+0009).
5 c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().' ' || c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().'\t'
6 }
7
8 #[inline]
9 pub(craterust-analyzer cargo deb822-lossless 0.5.18 crate/) fn is_newlinerust-analyzer cargo deb822-lossless 0.5.18 common/is_newline().(c: char) -> bool {
10 c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().'\n' || c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().==rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]eq().'\r'
11 }
12
13 #[inline]
14 pub(craterust-analyzer cargo deb822-lossless 0.5.18 crate/) fn is_valid_key_charrust-analyzer cargo deb822-lossless 0.5.18 common/is_valid_key_char().(c: char) -> bool {
15 // deb822(5) says valid field characters are US-ASCII
16 // characters excluding control characters, space and colon
17 // (i.e. characters in the ranges U+0021 to U+0039 and U+003B to U+007E).
18 // I.e. printable characters except for space and colon.
19 c.is_ascii_graphicrust-analyzer cargo core https://github.com/rust-lang/rust/library/core char/methods/impl#[char]is_ascii_graphic().() && c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().':' && c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().' '
20 }
21
22 #[inline]
23 pub(craterust-analyzer cargo deb822-lossless 0.5.18 crate/) fn is_valid_initial_key_charrust-analyzer cargo deb822-lossless 0.5.18 common/is_valid_initial_key_char().(c: char) -> bool {
24 c rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().!=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[char][`PartialEq<Self>`]ne().'-' && is_valid_key_charrust-analyzer cargo deb822-lossless 0.5.18 common/is_valid_key_char().(c)
25 }