MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / IntegerOrRange

Interface IntegerOrRange

value.go:145–153  ·  view source on GitHub ↗

IntegerOrRange is a Value of type Integer or Range

Source from the content-addressed store, hash-verified

143
144// IntegerOrRange is a Value of type Integer or Range
145type IntegerOrRange interface {
146 Value
147
148 // Within checks that x fits within the range:
149 //
150 // for Integer: x == Integer's value
151 // for Range: Lower <= x && x <= Upper
152 Within(x int) bool
153}
154
155var (
156 _ = IntegerOrRange(Integer(0))

Callers 1

value.goFile · 0.85

Implementers 1

Rangevalue.go

Calls

no outgoing calls

Tested by

no test coverage detected