F. Levi

Results 31 comments of F. Levi

I would like to contribute. I'm pretty new to Rust, I'm not sure how to do this exactly. I guess it should look something like this: ![image](https://github.com/user-attachments/assets/b35f5be5-8a98-436a-8b01-6623de853453) But `Deserr` proc...

`bitflags` wants me to do it something like this: https://docs.rs/bitflags/latest/bitflags/#custom-derives Anyways, I'm going to return to this later, first I'll go through [`rustlings`](https://github.com/rust-lang/rustlings), as I am really unfamiliar with advanced...

I'm not sure how to use ~~variant~~ field? attributes: ![image](https://github.com/user-attachments/assets/09a74c0c-1236-499a-bf81-cba5c169187d)

You mean like this? Doesn't seem like it. ![image](https://github.com/user-attachments/assets/e76cc2ba-3a91-4c17-bc91-1d1df6bc4317)

I could make a PR if that makes it easier to see what's going on with the faulty code.

@irevoire I've opened a draft PR. For now I'd just like to see what tests might fail for now, but my machine really struggles with `cargo test`. Can you please...

```rs struct Match { match_len: usize, // ids of the query words that matches. ids: Vec, // position of the word in the whole text. word_position: usize, // position of...

Given `Token` would it be correct to take the first tokens `char_start` and subtract it from the `char_end` of the last token to get the total `match_len`?

Okay, I just did that and it sort of works, but whatever is using the matcher only cuts the first token/word. ![image](https://github.com/user-attachments/assets/6fe8670e-e908-4604-8550-cee653c1569d) EDIT: It's `format` on the `Matcher`

Hello @ManyTheFish, I've opened a draft PR.