You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a5e632
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(stack-encrypt): the query chain starts with the operator and ends on the plan
`cipher.query(op::Eq, "bob@example.com").on(&plan)` replaces
`cipher.query("bob@example.com").using(&plan).op(op::Eq)`. The operator
comes first, by value, and `on` names the plan, which chooses the index
that answers the operator (`plan::Chooses`) and resolves the label the
write used (`plan::Resolves`). An index the plan declares beside the
default is named before the plan: `.via(index).on(&plan)`. An index's own
term, for ORE and OPE until the ordering operators arrive, is
`cipher.query_index(Ore, &40).on(&plan)`.
`op::Matches` is now a value as well as a type, as `PhantomData` is, so
`op::Matches::new()` is `op::Matches`; `op::Matches.case_sensitive()` is
the other case. The case types are `CaseInsensitive` and `CaseSensitive`:
`Sensitive` on its own read as data sensitivity. `Match` is a value the
same way, so `Match::default()` is `Match`, and `Default` is implemented
for every `Match<O>`.
`Answers::via()` and `DefaultIndex::via()` are gone: an index is a unit
type, so `Via: Default` says the same thing without a method per impl,
and the three equivalent-mutant exclusions for those bodies go with them.
"Needle" is gone from the prose: a match query is a filter over the
query's value, where the stored term is a filter over the stored value.
Claude-Session: https://claude.ai/code/session_01VYKAWbd361xDLmqBdLoUcB
Copy file name to clipboardExpand all lines: .cargo/mutants.toml
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -72,10 +72,11 @@ exclude_re = [
72
72
'stack-encrypt/src/cipher\.rs:\d+:\d+: replace client_key_provider -> EnvKeyProvider with Default::default\(\)$',
73
73
'stack-encrypt/src/target/pending\.rs:443:9: replace <impl IntoFuture for Pending<.*>>::into_future -> Self::IntoFuture with Default::default\(\)$',
74
74
# stack-encrypt — equivalent.
75
-
# An operator and an operator's index are unit structs, whose `Default`
76
-
#is the value `clone` and `via` already return.
75
+
# An operator and an index are unit structs, whose `Default` is the value
76
+
# `clone` and `case_sensitive` already return.
77
77
'stack-encrypt/src/op(/mod)?\.rs:\d+:\d+: replace <impl Clone for Matches<C>>::clone -> Self with Default::default\(\)$',
78
-
'stack-encrypt/src/op(/mod)?\.rs:\d+:\d+: replace <impl (Answers<Eq, S> for EqualityTerm|DefaultIndex<S> for Eq|DefaultIndex<S> for Matches<<DefaultMatch as MatchCase>::Case>)>::via -> (Equality|Match) with Default::default\(\)$',
78
+
'stack-encrypt/src/op(/mod)?\.rs:\d+:\d+: replace Matches::case_sensitive -> Matches<CaseSensitive> with Default::default\(\)$',
79
+
'stack-encrypt/src/target/index\.rs:\d+:\d+: replace <impl Clone for Match<O>>::clone -> Self with Default::default\(\)$',
79
80
'stack-encrypt/src/cipher\.rs:\d+:\d+: replace StackCipher<FromEnv>::builder -> StackCipherBuilder with Default::default\(\)$',
80
81
'stack-encrypt/src/sem/mod\.rs:\d+:\d+: replace <impl MatchConfig for DefaultMatch>::options -> MatchOptions with Default::default\(\)$',
81
82
# Both unit-context conversions explicitly return Self::default().
0 commit comments