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.
- Tipo
- class
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, final
- Archivo fuente
Any.ant
Parámetros de tipo
| Nombre | Restricciones |
|---|---|
T | cualquier tipo |
Herencia
- Clases base
-
AnyBoxed<T>
Constructores
constructor Boxed(Value: T, type: System.String<u8>)
#
Métodos
method ToString() -> System.String<u8>
#
Campos
field Value: T
#
The function value or pointer.
Miembros privados e internos (1)
field type: System.String<u8>
#
Miembros heredados (4)
GetTypemétodo de AnyUndescribedmétodo de AnyHashmétodo de Anydestroymétodo de Any
Código fuente
Boxed<T> en Larva HIR, descompilado a partir de su 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>
}