Skip to content

LineAction

Mojo struct 🡭

@register_passable_trivial
struct LineAction

The action a LinePolicy returns for a given line.

  • YIELD = LineAction(0)
  • SKIP = LineAction(1)
  • METADATA = LineAction(2)
  • HEADER = LineAction(3)
  • STOP = LineAction(4)

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

def __eq__(self, other: Self) -> Bool

Args:

  • self (Self)
  • other (Self)

Returns:

Bool