value · System
UInt8
public value UInt8 : INumber<u8>, IHashable<u8>, IComparable<u8>, IToString
- Tipo
- value
- Espacio de nombres
- System
- Ensamblado
- System.Core
- Acceso
- public, miembros de u8
- Archivo fuente
Primitives.ant
Herencia
Propiedades
Métodos
ToString(str format) : str
#
As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").
ToString() : str
#
Constantes
Código fuente
UInt8 en Antril, descompilado a partir de su Larva HIR.
// System.UInt8 — System.Core (decompiled from Larva HIR)
into namespace System
{
[Primitive("u8")]
public value UInt8 : INumber<u8>, IHashable<u8>, IComparable<u8>, IToString
{
public:
/// The smallest u8.
const u8 MinValue = 0;
/// The largest u8.
const u8 MaxValue = 255;
[Inline]
static FromF64(f64 value) : u8 => (u8)value;
[Inline]
static ToF64(u8 value) : f64 => value;
/// As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
ToString(str format) : str => NumberFormat.FormatInteger(this, 8, false, format);
ToString() : str => Number.Format((i64)this);
Hash() : u64 => this;
Equals(u8 other) : bool => this == other;
CompareTo(u8 other) : i32 => this < other ? -1 : this > other ? 1 : 0;
static u8 Zero
{
get => 0;
}
static u8 One
{
get => 1;
}
}
}