fn chr(&mut self, c: u8) -> Option<usize> {
    // If out of input, None
    if self.cur_opt()? != c {
      return None
    }
    self.idx += 1;
    (Some(self.idx), self.ws()).0
  }
/// Attempt to parse a specific character `c` at the current parser index.
/// On failure, returns `None` and does not advance.
/// On success, advances one character and skips any trailing whitespace.
Attempt to parse a specific character `c` at the current parser index.
On failure, returns `None` and does not advance.
On success, advances one character and skips any trailing whitespace.
Attempt to parse a specific character ` c ` at the current parser index . On failure returns ` None ` and does not advance . On success advances one character and skips any trailing whitespace .
fn chr(&mut self, c: u8) -> Option<usize> {
    // If out of input, None
    if self.cur_opt()? != c {
      return None
    }
    self.idx += 1;
    (Some(self.idx), self.ws()).0
  }
fn chr ( & mut self , c : u8 ) -> Option < usize > { // If out of input, None if self . cur_opt ( ) ? != c { return None } self . idx += 1 ; ( Some ( self . idx ) , self . ws ( ) ) . 0 }
Attempt to parse a specific character `c` at the current parser index.
Attempt to parse a specific character ` c ` at the current parser index .
&mut self
c
u8
&mut self
c
u8