Programming, Cloudflare, Rust, Serverless, Workers.
its contextual variant lex_with can either return a successful pair of (instance of the type, rest of input) or a pair of (error kind, relevant input span). The Lex trait is used for target types that can be parsed independently of the context (like field names or literals), while LexWith is used