Skip to content

Strand

Mojo struct 🡭

@register_passable_trivial
struct Strand

Strand of a BED feature: Plus (+), Minus (-), or Unknown (.).

  • Plus = Strand(0)
  • Minus = Strand(1)
  • Unknown = Strand(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)