The direction of a function. Functions in the Component Model can be imported into a world or exported from a world.
| 24 | /// Functions in the Component Model can be imported into a world or |
| 25 | /// exported from a world. |
| 26 | enum Direction<'a> { |
| 27 | /// The function is imported into the world. |
| 28 | Import { |
| 29 | /// The name of the parameter representing the interface instance |
| 30 | /// in the generated host binding function. |
| 31 | param_name: &'a GoIdentifier, |
| 32 | }, |
| 33 | /// The function is exported from the world. |
| 34 | #[allow(dead_code, reason = "halfway through refactor of func bindings")] |
| 35 | Export, |
| 36 | } |
| 37 | |
| 38 | pub struct Func<'a> { |
| 39 | direction: Direction<'a>, |
nothing calls this directly
no outgoing calls
no test coverage detected