MCPcopy Create free account
hub / github.com/cogentcore/core / IsValid

Method IsValid

cli/testdata/enumgen.go:104–107  ·  view source on GitHub ↗

IsValid returns whether the value is a valid option for type TestEnum.

()

Source from the content-addressed store, hash-verified

102// IsValid returns whether the value is a
103// valid option for type TestEnum.
104func (i TestEnum) IsValid() bool {
105 _, ok := _TestEnumMap[i]
106 return ok
107}
108
109// MarshalText implements the [encoding.TextMarshaler] interface.
110func (i TestEnum) MarshalText() ([]byte, error) {

Callers 9

ResetWidgetValueFunction · 0.45
openValueDialogFunction · 0.45
WidgetValueMethod · 0.45
CallFuncMethod · 0.45
structSliceIndexByValueFunction · 0.45
InitMethod · 0.45
bindMapKeyFunction · 0.45
toValueFunction · 0.45
sliceElementValueMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected