This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30f5f59
commit d965099
Showing
3 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
16 changes: 0 additions & 16 deletions
16
src/recovery_securify_cache/helpers/derivation_analysis_types/known_taken_instances.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/// A type used to hide a constructor for some other type, use | ||
/// it like this: | ||
/// | ||
/// ```rust,ignore | ||
/// pub struct ValidatedName { | ||
/// hiding_ctor: HiddenConstructor, | ||
/// pub name: String, | ||
/// pub name_appended_to_name: String // validated! | ||
/// } | ||
/// ``` | ||
/// | ||
/// Making it impossible to create `ValidatedName` with invalid value! | ||
/// | ||
#[derive(Clone, Default, Debug, PartialEq, Eq, Hash)] | ||
pub struct HiddenConstructor; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters