Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to not double box items #87

Open
krishna-selectstar opened this issue May 24, 2023 · 0 comments
Open

Add a way to not double box items #87

krishna-selectstar opened this issue May 24, 2023 · 0 comments

Comments

@krishna-selectstar
Copy link

krishna-selectstar commented May 24, 2023

I'm currently using ouroboros store some strings with their parsed equivalents like this:

#[self_referencing]
struct Data {
    text: String,
    #[covariant]
    #[borrows(text)]
    parsed: Ast<'this>
}

And I would like to avoid double boxing the string. Is there a way that I could use AliasedString, add an annotation and have it be unboxed, like this?

#[self_referencing]
struct Data {
    #[unboxed]
    text: AliasedString,
    #[covariant]
    #[borrows(text)]
    parsed: Ast<'this>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant