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

api: switch to extension traits #8

Merged
merged 1 commit into from
Jun 25, 2019
Merged

api: switch to extension traits #8

merged 1 commit into from
Jun 25, 2019

Conversation

BurntSushi
Copy link
Owner

This commit effectively rewrites the entire API of this crate to use
extension traits on [u8] and Vec<u8>. While the BStr and BString
types are still present, they are now just dumb wrappers that deref to
[u8] and Vec<u8>, respectively. Their primary purpose is for
convenient debug impls.

The motivation for this design is laid out in #5.

Closes #5

This commit effectively rewrites the entire API of this crate to use
extension traits on `[u8]` and `Vec<u8>`. While the `BStr` and `BString`
types are still present, they are now just dumb wrappers that deref to
`[u8]` and `Vec<u8>`, respectively. Their primary purpose is for
convenient debug impls.

The motivation for this design is laid out in #5.

Closes #5
@BurntSushi BurntSushi merged commit 3548359 into master Jun 25, 2019
@BurntSushi BurntSushi deleted the ag/ext-trait branch June 25, 2019 22:38
@BurntSushi BurntSushi mentioned this pull request Jul 11, 2022
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.

consider using extension traits on Vec<u8>/&[u8]
1 participant