Skip to content

GtfLinePolicy

Mojo struct 🡭

@register_passable_trivial
struct GtfLinePolicy

GTF: skip blank lines and lines starting with #.

AnyType, Copyable, ImplicitlyCopyable, ImplicitlyDestructible, LinePolicy, Movable, RegisterPassable, TrivialRegisterPassable

def classify(self, line: Span[UInt8, line.origin]) -> LineAction

Args:

  • self (Self)
  • line (Span)

Returns:

LineAction