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

feat(bolero-generator): implement bytes::Driver<T> where T: AsRef<[u8]> #260

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

camshaft
Copy link
Owner

@camshaft camshaft commented Nov 26, 2024

This change adds a bytes::Driver<T> that takes a value that implements AsRef<[u8]> and turns it into a driver. This is useful for passing around owned values of a driver without having to borrow slices and worry about lifetimes.

The ByteSliceDriver has been refactored to use this new driver internally.

@camshaft camshaft changed the title feat(bolero-generator): add cursor functions feat(bolero-generator): implement bytes::Driver<T> where T: AsRef<[u8]> Nov 26, 2024
@camshaft camshaft changed the title feat(bolero-generator): implement bytes::Driver<T> where T: AsRef<[u8]> feat(bolero-generator): implement bytes::Driver<T> where T: AsRef<[u8]> Nov 26, 2024
@camshaft camshaft marked this pull request as ready for review November 26, 2024 15:34
@camshaft camshaft merged commit 665f1c7 into master Nov 26, 2024
9 checks passed
@camshaft camshaft deleted the driver-position branch November 26, 2024 15:46
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