(s: &str)
| 1647 | const RECEIVER_CHAIN_MAX_LINKS: usize = 16; |
| 1648 | |
| 1649 | fn is_rust_ident(s: &str) -> bool { |
| 1650 | let mut chars = s.chars(); |
| 1651 | matches!(chars.next(), Some(c) if c.is_ascii_alphabetic() || c == '_') |
| 1652 | && chars.all(|c| c.is_ascii_alphanumeric() || c == '_') |
| 1653 | } |
| 1654 | |
| 1655 | /// The receiver chain a method call is written on, when it is fields and |
| 1656 | /// method calls on `self` or on a name: `self.services.store`, |