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

Split zvariant::Str into a separate crate #1062

Open
zeenix opened this issue Oct 11, 2024 · 0 comments
Open

Split zvariant::Str into a separate crate #1062

zeenix opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request zvariant Issues/PRs related to zvariant crate

Comments

@zeenix
Copy link
Contributor

zeenix commented Oct 11, 2024

The zvariant::Str type is very generic and gives one advantage over std::borrow::Cow: it supports a separate variant for static string literals, which allows for avoiding copying/allocation even when calling .to_owned() on it (e.g from a generic code that handles all variants).

CC @elmarco

@zeenix zeenix added enhancement New feature or request zvariant Issues/PRs related to zvariant crate labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request zvariant Issues/PRs related to zvariant crate
Projects
None yet
Development

No branches or pull requests

1 participant