diff options
author | Dan Dumont <dan.dumont@hcl.com> | 2023-01-20 15:12:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 15:12:42 -0500 |
commit | bca47cd9c2e718012f7f953be25bb3a6a9ca400b (patch) | |
tree | 432dc9180f96a0365c9c49f73158a26f51e727d1 /bindgen/regex_set.rs | |
parent | 190a017a100b00aeebe2c5e5acfd5ee699a655c9 (diff) |
Implement cli option for custom derive (#2328)
* custom derives after DeriveInfo
* Introduce `TypeKind` instead of `CompKind`
* Add tests
* Emit CLI flags for callbacks
* update changelog
* run rustfmt
* fix tests
* fix features
Co-authored-by: Christian Poveda <christian.poveda@ferrous-systems.com>
Diffstat (limited to 'bindgen/regex_set.rs')
-rw-r--r-- | bindgen/regex_set.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bindgen/regex_set.rs b/bindgen/regex_set.rs index 9f1e2251..6246dd25 100644 --- a/bindgen/regex_set.rs +++ b/bindgen/regex_set.rs @@ -16,6 +16,13 @@ pub struct RegexSet { } impl RegexSet { + /// Create a new RegexSet + pub fn new() -> RegexSet { + RegexSet { + ..Default::default() + } + } + /// Is this set empty? pub fn is_empty(&self) -> bool { self.items.is_empty() |