File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -484,6 +484,7 @@ impl PyPath {
484484 self . steps ( ) . __len__ ( )
485485 }
486486}
487+
487488#[ derive( Clone ) ]
488489#[ pyclass( frozen) ]
489490#[ pyo3( name = "ChunkEvent" , module = "flatgfa" ) ]
@@ -546,12 +547,12 @@ impl PyGAFLineIter {
546547
547548#[ pyclass]
548549#[ pyo3( name = "GAFLine" , module = "flatgfa" ) ]
549-
550550struct PyGAFLine {
551551 store : Arc < Store > ,
552552 chunks : Vec < PyChunkEvent > ,
553553 gaf : String ,
554554}
555+
555556#[ pymethods]
556557impl PyGAFLine {
557558 #[ getter]
@@ -586,9 +587,11 @@ impl PyGAFLine {
586587 }
587588 }
588589}
590+
589591struct OwnedGAFParser {
590592 mmap : Arc < Mmap > ,
591593}
594+
592595impl OwnedGAFParser {
593596 fn view_gafparser ( & self , position : usize ) -> GAFParser < ' _ > {
594597 let sub_slice = & self . mmap [ position..] ;
@@ -598,13 +601,13 @@ impl OwnedGAFParser {
598601
599602#[ pyclass]
600603#[ pyo3( name = "GAFParser" , module = "flatgfa" ) ]
601-
602604struct PyGAFParser {
603605 gaf_buf : OwnedGAFParser ,
604606 store : Arc < Store > ,
605607 name_map : NameMap ,
606608 pos : usize ,
607609}
610+
608611#[ pymethods]
609612impl PyGAFParser {
610613 fn __iter__ ( self_ : Py < Self > ) -> Py < Self > {
@@ -637,6 +640,7 @@ impl PyGAFParser {
637640 }
638641 }
639642}
643+
640644/// A sequence of :class:`Path` objects.
641645#[ pyclass]
642646#[ pyo3( module = "flatgfa" ) ]
You can’t perform that action at this time.
0 commit comments