In order to use the Seek trait you need to understand several tricks to use the SeekFrom enum. SeekFrom::End — seek from the end SeekFrom::Current — seek relative to curr position SeekFrom::Start — seek from start How do you rewind to 10 bytes before curr? No negative indexing!
-
-
Show this thread
-
Would be cool if there were methods to: - seek backwards from curr position - seek forward from curr position - seek to start - seek forward from start - seek to end - seek backwards from end The single "do it all" method is great, but shorthands w/ fewer imports would be nice.
Show this thread
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.