wasi-module-sdk-go/protocol/constraints.go

22 lines
310 B
Go
Raw Normal View History

2023-08-15 19:46:02 +00:00
package protocol
type Signed interface {
~int | ~int8 | ~int16 | ~int32 | ~int64
}
type Unsigned interface {
~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr
}
type Integer interface {
Signed | Unsigned
}
type Float interface {
~float32 | ~float64
}
type Numeric interface {
Integer | Float
}