File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ Why are we doing this? What problems does it solve?
19
19
Introduce and explain the new APIs and concepts. How will this proposal be
20
20
implemented? Provide representative and edge-case examples.
21
21
22
+ Provide a skeleton of the proposed API by writing out types (don't need their
23
+ members or full implementation) as well as function and method signatures
24
+ (again, just the signature, don't need the function body):
25
+
26
+ ``` rust
27
+ pub struct Whatever { ... }
28
+
29
+ impl Whatever {
30
+ pub fn new (raw : & web_sys :: RawWhatever ) -> Self { ... }
31
+ pub fn another (& self ) -> Another { ... }
32
+ }
33
+
34
+ pub struct Another { ... }
35
+
36
+ // Does X, Y, and Z when dropped.
37
+ impl Drop for Another {}
38
+ ```
39
+
22
40
## Drawbacks, Rationale, and Alternatives
23
41
24
42
Does this design have drawbacks? Are there alternative approaches? Why is this
You can’t perform that action at this time.
0 commit comments