class · System

Boxed<T>

public class System.Boxed<T> : System.Any

What an any holds a function value or a pointer in (neither is an object of its own): any a = f; makes one, (func<i32> : i32)a takes the value back out. It shows the value's type.

Kind
class
Namespace
System
Assembly
System.Core
Access
public, final
Source file
Any.ant

Type parameters

NameConstraints
Tany type

Inheritance

Base classes
Any Boxed<T>

Constructors

constructor Boxed(Value: T, type: System.String<u8>)
#

Methods

method ToString() -> System.String<u8>
#

override

Fields

field Value: T
#

The function value or pointer.

Private and internal members (1)

field type: System.String<u8>
#

private

Inherited members (4)

Source

Boxed<T> as Larva HIR, decompiled from its Larva HIR.

System.Boxed.hir
// What an `any` holds a function value or a pointer in (neither is an object of its own): `any a = f;` makes one,
// `(func<i32> : i32)a` takes the value back out. It shows the value's type.
public class System.Boxed<T> : System.Any
{
    field type: System.String<u8>
    // The function value or pointer.
    field Value: T
    constructor Boxed(Value: T, type: System.String<u8>)
    method ToString() -> System.String<u8>
}
Esc