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
| Name | Constraints |
|---|---|
T | any type |
Inheritance
- Base classes
-
AnyBoxed<T>
Constructors
constructor Boxed(Value: T, type: System.String<u8>)
#
Methods
method ToString() -> System.String<u8>
#
Fields
field Value: T
#
The function value or pointer.
Private and internal members (1)
field type: System.String<u8>
#
Inherited members (4)
GetTypemethod from AnyUndescribedmethod from AnyHashmethod from Anydestroymethod from Any
Source
Boxed<T> as Larva HIR, decompiled from its Larva 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>
}