<p>I think actually my least favorite thing about Rust is the thing where a method is &quot;not found&quot; because there&#39;s a trait that needs to be &quot;use&quot;d.</p><p>Like, see this line:</p><p><a href="https://github.com/crossterm-rs/crossterm/blob/master/examples/event-stream-tokio.rs#L29" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/crossterm-rs/crosst</span><span class="invisible">erm/blob/master/examples/event-stream-tokio.rs#L29</span></a></p><p>I copypaste into my own program. &quot;.next()&quot; is not found. It&#39;s not documented, either.</p><p>I was supposed to `use futures::StreamExt;`. How was I supposed to guess that.</p><p>It&#39;s like the hell in C where a header includes a header and suddenly symbols are appearing (or failing to) but you don&#39;t know where from.</p>
Reply