MCPcopy Create free account
hub / github.com/Rust-GPU/rust-cuda / next

Method next

crates/ptx/src/parser.rs:18–22  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

16
17impl<'src> TokenManager<'src> {
18 pub(crate) fn next(&mut self) -> Option<ParserResult<Token>> {
19 let next = self.lexer.next()??;
20 self.token_pos += 1;
21 Some(Ok(next))
22 }
23
24 pub(crate) fn expect(&mut self, kind: TokenKind) -> ParserResult<Token> {
25 match self.next() {

Callers 1

expectMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected