peco.peco/vertical_anchor_gen.go
2026-02-17 18:03:46 +09:00

26 lines
732 B
Go

// Code generated by "stringer -type VerticalAnchor -output vertical_anchor_gen.go ."; DO NOT EDIT.
package peco
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[AnchorTop-1]
_ = x[AnchorBottom-2]
}
const _VerticalAnchor_name = "AnchorTopAnchorBottom"
var _VerticalAnchor_index = [...]uint8{0, 9, 21}
func (i VerticalAnchor) String() string {
idx := int(i) - 1
if i < 1 || idx >= len(_VerticalAnchor_index)-1 {
return "VerticalAnchor(" + strconv.FormatInt(int64(i), 10) + ")"
}
return _VerticalAnchor_name[_VerticalAnchor_index[idx]:_VerticalAnchor_index[idx+1]]
}