GtfParser
Mojo struct 🡭
GtfParser
Section titled “GtfParser”@memory_onlystruct GtfParser[R: Reader]Streaming GTF2.2 parser. Yields GtfView / GtfRecord.
Aliases
Section titled “Aliases”IteratorType[origin: Origin]: AnyStruct[_GtfParserRecordIter[R, origin]] = _GtfParserRecordIter[R, origin]
Parameters
Section titled “Parameters”- R (
Reader)
Implemented traits
Section titled “Implemented traits”AnyType, ImplicitlyDestructible, Iterable, Movable
Methods
Section titled “Methods”__init__
Section titled “__init__”def __init__(out self, var reader: R)Args:
- reader (
R) - self (
Self)
Returns:
Self
Raises:
has_more
Section titled “has_more”def has_more(self) -> BoolArgs:
- self (
Self)
Returns:
Bool
next_view
Section titled “next_view”def next_view(mut self) -> GtfView[MutExternalOrigin]Args:
- self (
Self)
Returns:
GtfView
Raises:
next_record
Section titled “next_record”def next_record(mut self) -> GtfRecordArgs:
- self (
Self)
Returns:
GtfRecord
Raises:
def views(ref self) -> _GtfParserViewIter[R, origin_of(self)]Args:
- self (
Self)
Returns:
_GtfParserViewIter
records
Section titled “records”def records(ref self) -> _GtfParserRecordIter[R, origin_of(self)]Args:
- self (
Self)
Returns:
_GtfParserRecordIter
__iter__
Section titled “__iter__”def __iter__(ref self) -> _GtfParserRecordIter[R, origin_of(self)]Args:
- self (
Self)
Returns:
_GtfParserRecordIter