GtfStrand
Mojo struct 🡭
GtfStrand
Section titled “GtfStrand”@register_passable_trivialstruct GtfStrandStrand 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.
Aliases
Section titled “Aliases”Plus = GtfStrand(Int8(0))Minus = GtfStrand(Int8(1))Unstranded = GtfStrand(Int8(2))
Fields
Section titled “Fields”- value (
Int8)
Implemented traits
Section titled “Implemented traits”AnyType, Copyable, Deinitable, Equatable, ImplicitlyCopyable, Movable, RegisterPassable, TrivialRegisterPassable, Writable
Methods
Section titled “Methods”__init__
Section titled “__init__”fn def __init__(value: Int8) -> SelfArgs:
- value (
Int8)
Returns:
Self
__eq__
Section titled “__eq__”fn def __eq__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
write_to
Section titled “write_to”fn def write_to[w: Writer](self, mut writer: w)Parameters:
- w (
Writer)
Args:
- self (
Self) - writer (
w)