8000 beef::lean::Cow by maciejhirsz · Pull Request #10 · maciejhirsz/beef · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

beef::lean::Cow #10

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

Merged
merged 22 commits into from
Mar 17, 2020
Merged

beef::lean::Cow #10

merged 22 commits into from
Mar 17, 2020

Conversation

maciejhirsz
Copy link
Owner
@maciejhirsz maciejhirsz commented Mar 16, 2020
  • beef::Cow<'a, T> is now a type alias for beef::generic::Cow<'a, T, Option<NonZeroUsize>>.
  • Added beef::lean::Cow<'a, T> which is a type alias for beef::generic::Cow<'a, T, Lean>, where Lean is a 0-sized struct. This version of the Cow stores length and capacity together on a single usize, and is only available for 64-bit targets.
  • Due to generic constraints const_fn now adds Cow::const_borrowed as a separate function. This is not available for beef::lean::Cow.
  • Beef trait has been made private.

@maciejhirsz maciejhirsz changed the title Cursed beef::skinny::Cow beef::lean::Cow Mar 17, 2020
@maciejhirsz maciejhirsz merged commit c1197ee into master Mar 17, 2020
@maciejhirsz maciejhirsz deleted the cursed branch March 17, 2020 07:24
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

Successfully merging this pull request may close these issues.

1 participant
0