MCPcopy
hub / github.com/ent/ent / BytesNot

Function BytesNot

entql/types.go:182–188  ·  view source on GitHub ↗

BytesNot returns a predicate that represents the logical negation of the given predicate.

(x BytesP)

Source from the content-addressed store, hash-verified

180
181// BytesNot returns a predicate that represents the logical negation of the given predicate.
182func BytesNot(x BytesP) BytesP {
183 expr := &bytesP{}
184 expr.done = func(name string) {
185 expr.P = Not(x.Field(name))
186 }
187 return expr
188}
189
190// TimeP is the interface for predicates of type time.Time (`type P[time.Time]`).
191type TimeP interface {

Callers

nothing calls this directly

Calls 2

NotFunction · 0.70
FieldMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…