Module ratel::owned_slice [] [src]

Structs

OwnedSlice

This struct should be unnecessary as it does exactly the same thing a regular &str does. It does however remove the burden of handling lifetimes within the code at the cost of making sure that the slice doesn't outlive the source. Ideally the AST and all it's components should contain a lifetime bound to the source string, however making that work with current iteration of borrow checker is anywhere between very hard to impossible.