value · System

Boolean

public value Boolean : IHashable<bool>, IToString
Kind
value
Namespace
System
Assembly
System.Core
Access
public, members of bool
Source file
Primitives.ant

Inheritance

Interfaces
IHashable<TSelf> IToString

Methods

ToString() : str
#
Hash() : u64
#
Equals(bool other) : bool
#

Source

Boolean as Antril, decompiled from its Larva HIR.

System.Boolean.ant
// System.Boolean — System.Core (decompiled from Larva HIR)

into namespace System
{
	[Primitive("bool")]
	public value Boolean : IHashable<bool>, IToString
	{
		public:
			ToString() : str => this ? "true" : "false";

			Hash() : u64 => this ? 1 : 0;

			Equals(bool other) : bool => this == other;
	}
}
Esc