Lines Matching defs:EnumRanges
68 type EnumRanges struct { struct
69 List [][2]protoreflect.EnumNumber // start inclusive; end inclusive
70 once sync.Once
71 sorted [][2]protoreflect.EnumNumber // protected by once
74 func (p *EnumRanges) Len() int { return len(p.List) }
75 func (p *EnumRanges) Get(i int) [2]protoreflect.EnumNumber { return p.List[i] }
76 func (p *EnumRanges) Has(n protoreflect.EnumNumber) bool {
90 func (p *EnumRanges) Format(s fmt.State, r rune) { descfmt.FormatList(s, r, p) }
91 func (p *EnumRanges) ProtoInternal(pragma.DoNotImplement) {}
92 func (p *EnumRanges) lazyInit() *EnumRanges {
104 func (p *EnumRanges) CheckValid() error {