MCPcopy Create free account
hub / github.com/hashintel/hash / filter

Method filter

libs/@local/hashql/eval/src/orchestrator/partial.rs:146–158  ·  view source on GitHub ↗
(self, func: impl FnOnce(&T) -> bool)

Source from the content-addressed store, hash-verified

144 }
145
146 pub(crate) fn filter(self, func: impl FnOnce(&T) -> bool) -> Self {
147 match self {
148 Self::Skipped => Self::Skipped,
149 Self::Null(()) => Self::Null(()),
150 Self::Value(value) => {
151 if func(&value) {
152 Self::Value(value)
153 } else {
154 Self::Null(())
155 }
156 }
157 }
158 }
159}
160
161impl<T: Default, N> Hydrated<T, N> {

Callers 15

webpack.config.jsFile · 0.45
createQuickNoteFunction · 0.45
RowByLocationFunction · 0.45
removeRuleFunction · 0.45
EntityTypeSelectorFunction · 0.45
getLinkedEntityTypeIdsFunction · 0.45
useFlowRunsFunction · 0.45
ManuallyTriggeredFunction · 0.45
AutomaticallyTriggeredFunction · 0.45
background.tsFile · 0.45
getAvatarForEntityFunction · 0.45

Calls 2

funcFunction · 0.85
ValueEnum · 0.50

Tested by 15

enableTotpForCurrentUserFunction · 0.36
selectEntityTypeOptionFunction · 0.36
chipLabelFunction · 0.36
remove_builtin_framesFunction · 0.36
compile_filter_islandsFunction · 0.36
run_loop_breakerFunction · 0.36
read_policiesFunction · 0.36
makeFrameFunction · 0.36