Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Undefinedable ¶
func Defined ¶
func Defined[T any](v T) Undefinedable[T]
func FromPointer ¶
func FromPointer[T any](v *T) Undefinedable[T]
FromPointer converts *T into Undefinedable[T]. If v is nil, it returns an undefined Undefinedable. Otherwise, v is copied by assignment.
func Undefined ¶
func Undefined[T any]() Undefinedable[T]
func (Undefinedable[T]) Equal ¶
func (f Undefinedable[T]) Equal(other Undefinedable[T]) bool
func (Undefinedable[T]) IsDefined ¶
func (u Undefinedable[T]) IsDefined() bool
func (Undefinedable[T]) IsUndefined ¶
func (u Undefinedable[T]) IsUndefined() bool
Click to show internal directories.
Click to hide internal directories.