Skip to content

GtfStrand

Mojo struct 🡭

@register_passable_trivial
struct GtfStrand

Strand of a GTF feature: Plus (+), Minus (-), or Unstranded (.).

GTF2.2 specification allows + or - only, but . is used in practice for features without a defined strand.

  • Plus = GtfStrand(0)
  • Minus = GtfStrand(1)
  • Unstranded = GtfStrand(2)
  • value (Int8)

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

def __init__(value: Int8) -> Self

Args:

  • value (Int8)

Returns:

Self

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

def write_to[w: Writer](self, mut writer: w)

Parameters:

  • w (Writer)

Args:

  • self (Self)
  • writer (w)