interfaces

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeepCopier

type DeepCopier[T any] interface {
	// DeepCopy returns a deep copy of the object.
	DeepCopy() T
}

DeepCopier represents object that can be deep-copied.

type Equaler

type Equaler[T any] interface {
	// Returns true if both objects are equal.
	Equal(T) bool
}

Equaler represents objects can be compared for equality via the Equals method.

type Number added in v0.4.25

type Number interface {
	constraints.Integer | constraints.Float
}

Number represents any integer or floating-point number.

Jump to

Keyboard shortcuts

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