Skip to content

position try from

Mojo function 🡭

def position_try_from(value: UInt64) -> Optional[Position]

Create a Position if value >= 1 (1-based), else None (aligned with noodles_core).

Args:

  • value (UInt64)

Returns:

Optional