Skip to content

GtfErrorCode

Mojo struct 🡭

@register_passable_trivial
struct GtfErrorCode

Trivial error code returned by low-level GTF field parsers; caller raises.

  • OK = GtfErrorCode(Int8(0))
  • INT_EMPTY = GtfErrorCode(Int8(1))
  • INT_INVALID = GtfErrorCode(Int8(2))
  • STRAND_INVALID = GtfErrorCode(Int8(3))
  • PHASE_INVALID = GtfErrorCode(Int8(4))
  • FIELD_COUNT = GtfErrorCode(Int8(5))
  • COORD_ZERO = GtfErrorCode(Int8(6))
  • MISSING_GENE_ID = GtfErrorCode(Int8(7))
  • MISSING_TRANSCRIPT_ID = GtfErrorCode(Int8(8))
  • value (Int8)

AnyType, Copyable, Deinitable, Equatable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable

fn def __init__(value: Int8) -> Self

Args:

  • value (Int8)

Returns:

Self

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

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

fn def __ne__(self, other: Self) -> Bool

Args:

  • self (Self)
  • other (Self)

Returns:

Bool

fn def message(self) -> String

Args:

  • self (Self)

Returns:

String