We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8b9d9e commit 9a91f15Copy full SHA for 9a91f15
lib/src/atom/matcher.rs
@@ -970,10 +970,15 @@ impl BindingsSet {
970
BindingsSet(smallvec::smallvec![])
971
}
972
973
- /// Creates a new unconstrained BindingsSet
+ /// Creates a new BindingsSet with a single full match
974
pub fn single() -> Self {
975
BindingsSet(smallvec::smallvec![Bindings::new()])
976
977
+
978
+ /// Creates a new BindingsSet with `count` full matches
979
+ pub fn count(count: usize) -> Self {
980
+ BindingsSet(smallvec::SmallVec::from_elem(Bindings::new(), count))
981
+ }
982
983
/// Returns `true` if a BindingsSet contains no Bindings Objects (fully constrained)
984
///
0 commit comments