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