Documentation ¶
Overview ¶
Package tiered provides a type for a tiered set of objects.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tiered ¶
type Tiered[T any] struct { // First is the object that will be used first, // before [Tiered.Normal] and [Tiered.Final]. First T // Normal is the object that will be used at the normal // time, after [Tiered.First] and before [Tiered.Final]. Normal T // Final is the object that will be used last, // after [Tiered.First] and [Tiered.Normal]. Final T }
Tiered represents a tiered set of objects of the same type. For example, this is frequently used to represent slices of functions that can be run at the first, normal, or final time.
Click to show internal directories.
Click to hide internal directories.