Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 461 Bytes

taking-ownership.md

File metadata and controls

10 lines (6 loc) · 461 Bytes

Taking ownership of the receiver

Summary

  • Support traits that use fn(self) with dynamic dispatch
    • The caller will have to be using a Box<dyn Foo>, but that is not hard-coded into the trait.

Status quo

Grace is working on an embedded system. She needs to parse data from an input stream that is formatted as a series of packets in the format TLA. She finds a library tla on crates.io with a type that implements the async iterator trait: