Mojo struct
@register_passable
struct EmptyOptionalError[T: AnyType]
An error type for when an empty Optional is accessed.
Parameters
- T (
AnyType): The type of the value that was accessed in theOptional.
Implemented traits
AnyType,
Copyable,
ImplicitlyCopyable,
ImplicitlyDestructible,
Movable,
RegisterPassable,
Writable
comptime members
__copy_ctor_is_trivial
comptime __copy_ctor_is_trivial = True
__del__is_trivial
comptime __del__is_trivial = True
__move_ctor_is_trivial
comptime __move_ctor_is_trivial = True
Methods
write_to
write_to(self, mut writer: T)
Write the error to a Writer.
Args:
- writer (
T): TheWriterto write to.
write_repr_to
write_repr_to(self, mut writer: T)
Write the error to a Writer.
Args:
- writer (
T): TheWriterto write to.