Skip to main content

Mojo struct

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.

Was this page helpful?