Position
Mojo struct 🡭
Position
Section titled “Position”@register_passable_trivialstruct Position1-based genomic coordinate (aligned with noodles_core::Position).
Valid positions are >= 1. Position 0 is invalid. BED stores 0-based half-open; convert when exposing via start_position/interval.
Aliases
Section titled “Aliases”MIN_VALUE = 1MAX_VALUE = UInt64.MAXUNSET = 0
Implemented traits
Section titled “Implemented traits”AnyType, Comparable, Copyable, Equatable, Hashable, ImplicitlyCopyable, ImplicitlyDestructible, Movable, RegisterPassable, TrivialRegisterPassable
Methods
Section titled “Methods”__init__
Section titled “__init__”def __init__(out self, value: UInt64)Args:
- value (
UInt64) - self (
Self)
Returns:
Self
Raises:
def __init__(value: UInt64, _unsafe: Bool) -> SelfInternal: use when value is already known to be >= 1 (e.g. from conversion).
Args:
- value (
UInt64) - _unsafe (
Bool)
Returns:
Self
__lt__
Section titled “__lt__”def __lt__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
__eq__
Section titled “__eq__”def __eq__(self, other: Self) -> BoolArgs:
- self (
Self) - other (
Self)
Returns:
Bool
def get(self) -> UInt64Return the raw 1-based coordinate.
Args:
- self (
Self)
Returns:
UInt64