Lines Matching defs:char
150 /// Transforms common types to a char for basic token parsing
152 /// makes a char from self
153 fn as_char(self) -> char;
176 fn as_char(self) -> char {
177 self as char
208 fn as_char(self) -> char {
209 *self as char
239 impl AsChar for char {
241 fn as_char(self) -> char {
270 impl<'a> AsChar for &'a char {
272 fn as_char(self) -> char {
305 /// Example: `u8` for `&[u8]` or `char` for `&str`
378 type Item = char;
447 /// Example: `u8` for `&[u8]` or `char` for `&str`
626 type Item = char;
633 // find() returns a byte index that is already in the slice at a char boundary
649 // find() returns a byte index that is already in the slice at a char boundary
663 // find() returns a byte index that is already in the slice at a char boundary
665 // the end of slice is a char boundary
685 // find() returns a byte index that is already in the slice at a char boundary
691 // the end of slice is a char boundary
905 impl<'a> FindToken<char> for &'a [u8] {
906 fn find_token(&self, token: char) -> bool {
911 impl<'a> FindToken<char> for &'a str {
912 fn find_token(&self, token: char) -> bool {
917 impl<'a> FindToken<char> for &'a [char] {
918 fn find_token(&self, token: char) -> bool {
923 impl<'a, 'b> FindToken<&'a char> for &'b [char] {
924 fn find_token(&self, token: &char) -> bool {
1141 /// Example: `u8` for `&[u8]` or `char` for `&str`
1185 type Item = char;
1200 type Item = char;
1214 impl ExtendInto for char {
1215 type Item = char;