Skip to content

Commit

Permalink
Update callbacks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
romamik authored Oct 24, 2024
1 parent 9c10d31 commit e4ab366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions book/src/callbacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Logos can handle callbacks with following return types:
| `Option<T>` | `Ok(Token::Value(T))` **or** `Err(<Token as Logos>::Error::default())` |
| `Result<T, E>` | `Ok(Token::Value(T))` **or** `Err(<Token as Logos>::Error::from(err))` |
| [`Skip`](https://docs.rs/logos/latest/logos/struct.Skip.html) | _skips matched input_ |
| `Result<Skip, E>` | _skips matched input_ **or** `Err(<Token as Logos>::Error::from(err))` |
| [`Filter<T>`](https://docs.rs/logos/latest/logos/enum.Filter.html) | `Ok(Token::Value(T))` **or** _skips matched input_ |
| [`FilterResult<T, E>`](https://docs.rs/logos/latest/logos/enum.FilterResult.html) | `Ok(Token::Value(T))` **or** `Err(<Token as Logos>::Error::from(err))` **or** _skips matched input_ |

Expand Down

0 comments on commit e4ab366

Please sign in to comment.