cmotoko

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

type Result[T any, E any] struct {
	Ok  *T `ic:"Ok,variant"`
	Err *E `ic:"Err,variant"`
}

Result is a generic type that represents either success (Ok) or failure (Err). It is used as the return type of functions which may fail.

Jump to

Keyboard shortcuts

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