generics

package module
v0.0.0-...-986b50e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AliasType

type AliasType Baz[other.Three]

type Bar

type Bar[T any, R any] interface {
	One(string) string
	Two(T) string
	Three(T) R
	Four(T) Foo[T, R]
	Five(T) Baz[T]
	Six(T) *Baz[T]
	Seven(T) other.One[T]
	Eight(T) other.Two[T, R]
	Nine(Iface[T])
	Ten(*T)
	Eleven() (*other.One[T], error)
	Twelve() (*other.Two[T, R], error)
	Thirteen() (Baz[StructType], error)
	Fourteen() (*Foo[StructType, StructType2], error)
	Fifteen() (Iface[StructType], error)
	Sixteen() (Baz[other.Three], error)
	Seventeen() (*Foo[other.Three, other.Four], error)
	Eighteen() (Iface[*other.Five], error)
	Nineteen() AliasType
}

type Baz

type Baz[T any] struct{}

type Earth

type Earth[R any] interface {
	Water(R) []R
}

type ExternalConstraint

type ExternalConstraint[I constraints.Integer, F any] interface {
	One(string) string
	Two(I) string
	Three(I) F
	Four(I) Foo[I, F]
	Five(I) Baz[F]
	Six(I) *Baz[F]
	Seven(I) other.One[I]
	Eight(F) other.Two[I, F]
	Nine(Iface[I])
	Ten(*I)
	Eleven() map[string]I
	Twelve(ctx context.Context) <-chan []I
	Thirteen(...I) *F
}

type Foo

type Foo[T any, R any] struct{}

type Generator

type Generator[T any] interface {
	Generate() T
}

type Group

type Group[T Generator[any]] interface {
	Join(ctx context.Context) []T
}

type Iface

type Iface[T any] any

type MilkyWay

type MilkyWay[R constraints.Integer] interface {
	SolarSystem[R]
}

type SolarSystem

type SolarSystem[T constraints.Ordered] interface {
	Earth[T]
}

type StructType

type StructType struct{}

type StructType2

type StructType2 struct{}

type Universe

type Universe[T constraints.Signed] interface {
	MilkyWay[T]
}

type UnsignedInteger

type UnsignedInteger interface {
	~uint | ~uint32 | ~uint64
}

type Water

type Water[R any, C UnsignedInteger] interface {
	Fish(R) []C
}

Directories

Path Synopsis
Package source is a generated GoMock package.
Package source is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL