Types
Custom Types
type MyType {
VariantA,
VariantB,
}
Records
type MyRecord(foo: U32, bar: Boolean);
Anonymous Records
fn sincos(x: F64) -> type(F64, F64) {
type(x.sin, x.cos)
}
Type Aliases
type Alias = MyType;
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
type MyType {
VariantA,
VariantB,
}
type MyRecord(foo: U32, bar: Boolean);
fn sincos(x: F64) -> type(F64, F64) {
type(x.sin, x.cos)
}
type Alias = MyType;