RustPython | A Python Interpreter written in Rust | Interpreter library
kandi X-RAY | RustPython Summary
kandi X-RAY | RustPython Summary
Interested in exposing Python scripting in an application written in Rust, perhaps to allow quickly tweaking logic where Rust's compile times would be inhibitive? Then examples/hello_embed.rs and examples/mini_repl.rs may be of some assistance.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RustPython
RustPython Key Features
RustPython Examples and Code Snippets
Community Discussions
Trending Discussions on RustPython
QUESTION
I'm developing on the re module in rustpython using the regex
crate. I want to store the Match
object in a struct without lifetimes. Is there a way to do this?
So far, I simply copied the start
and end
values of the match object into seperate fields, but this feels odd and wrong. There should be a way to store the Match
object itself. (Corresponding code lives here: https://github.com/RustPython/RustPython/blob/master/vm/src/stdlib/re.rs#L78)
ANSWER
Answered 2019-Jul-11 at 20:16You can't remove the lifetime of the Match
object, because it is defined like so:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RustPython
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page