IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /docs/manual/basics.md). For the complete Mojo documentation index, see llms.txt.
Skip to main content
Version: Nightly
For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).

NoneType

struct NoneType

Represents the absence of a value.

Implemented traits

AnyType, Copyable, Defaultable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable, Writable

Methods

__init__

__init__() -> Self

Construct an instance of the None type.

@implicit __init__(value: None) -> Self

Construct an instance of the None type.

Args:

  • value (None): The MLIR none type to construct from.

write_to

write_to(self, mut writer: T)

Writes None to a writer.

Args:

  • writer (T): The object to write to.

write_repr_to

write_repr_to(self, mut writer: T)

Writes None to a writer.

Args:

  • writer (T): The object to write to.