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 strict_check method to StrictDecode #11

Open
dr-orlovsky opened this issue Apr 2, 2023 · 0 comments
Open

Add strict_check method to StrictDecode #11

dr-orlovsky opened this issue Apr 2, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dr-orlovsky
Copy link
Member

For checking internal data consistency upon decoding operation

impl<const VERSION: u8> StrictDecode for ___ {
  fn strict_check(&self) -> Result<(), DecodeError> {
    // ...
  }
}

The method should have a default implementation which should not error.

@dr-orlovsky dr-orlovsky added the enhancement New feature or request label Apr 2, 2023
@dr-orlovsky dr-orlovsky self-assigned this Apr 2, 2023
@dr-orlovsky dr-orlovsky added this to the v2.0.0 milestone Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant