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 user-friendly version of read_value! macro #51

Merged
merged 5 commits into from
Apr 29, 2024

Conversation

statiolake
Copy link
Owner

Currently, read_value! macro is just an internal implementation. In this PR, we expose read_value! macro with more user-friendly interface.

As in newly added doc, you can use read_value! as following.

let mut sum = 0;
for _ in 0..read_value!(usize) {
    sum += read_value!(u32);
}
assert_eq!(sum, 7);

Close #27

@statiolake statiolake merged commit acf59fa into master Apr 29, 2024
32 checks passed
@statiolake statiolake deleted the feature/friendly-read-value branch April 29, 2024 13: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.

Expose user-friendly version of read_value! for users
1 participant