struct · System

Int32

public struct System.Int32 : System.ISignedNumber<i32>, System.IHashable<i32>, System.IComparable<i32>, System.IToString
Kind
struct
Namespace
System
Assembly
System.Core
Access
public, members of i32
Source file
Primitives.ant

Inheritance

Interfaces
ISignedNumber<TSelf> IHashable<TSelf> IComparable<TSelf> IToString
All interfaces
IComparable<TSelf> IHashable<TSelf> INumber<TSelf> ISignedNumber<TSelf> IToString

Properties

static property Zero: i32
#

static read-only

static property One: i32
#

static read-only

static property NegativeOne: i32
#

static read-only

Methods

static method FromF64(value: f64) -> i32
#

static

static method ToF64(value: i32) -> f64
#

static

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

As text by a format: D, X, B, N, F, E, P, G and a precision (255.ToString("X4") is "00FF").

method ToString() -> System.String<u8>
#
method Hash() -> u64
#
method Equals(other: i32) -> bool
#
method CompareTo(other: i32) -> i32
#
static method Parse(text: System.String<u8>) -> i32
#

static

static method TryParse(text: System.String<u8>) -> i32?
#

static

The number text writes, or null when it writes none.

Constants

static constant MinValue: i32
#

The smallest i32.

static constant MaxValue: i32
#

The largest i32.

Source

Int32 as Larva HIR, decompiled from its Larva HIR.

System.Int32.hir
public struct System.Int32 : System.ISignedNumber<i32>, System.IHashable<i32>, System.IComparable<i32>, System.IToString
{
    // The smallest i32.
    static constant MinValue: i32
    // The largest i32.
    static constant MaxValue: i32
    static method FromF64(value: f64) -> i32
    static method ToF64(value: i32) -> f64
    // As text by a format: D, X, B, N, F, E, P, G and a precision (`255.ToString("X4")` is "00FF").
    method ToString(format: System.String<u8>) -> System.String<u8>
    method ToString() -> System.String<u8>
    method Hash() -> u64
    method Equals(other: i32) -> bool
    method CompareTo(other: i32) -> i32
    static method Parse(text: System.String<u8>) -> i32
    // The number `text` writes, or null when it writes none.
    static method TryParse(text: System.String<u8>) -> i32?
    static property Zero: i32
    static property One: i32
    static property NegativeOne: i32
}
Esc