|
15 | 15 | // See the License for the specific language governing permissions and |
16 | 16 | // limitations under the License. |
17 | 17 |
|
| 18 | +// Custom inner attributes are unstable, so we need to faky disable the attribute. |
| 19 | +// rustfmt still honors the attribute to not format the rustdocs below. |
| 20 | +#![cfg_attr(feature = "never", rustfmt::skip)] |
18 | 21 | //! Substrate runtime interface |
19 | 22 | //! |
20 | 23 | //! This crate provides types, traits and macros around runtime interfaces. A runtime interface is |
|
94 | 97 | //! | `&str` | `u64` | <code>v.len() 32bit << 32 | v.as_ptr() 32bit</code> | |
95 | 98 | //! | `&[u8]` | `u64` | <code>v.len() 32bit << 32 | v.as_ptr() 32bit</code> | |
96 | 99 | //! | `Vec<u8>` | `u64` | <code>v.len() 32bit << 32 | v.as_ptr() 32bit</code> | |
97 | | -//! | `Vec<T> where T: Encode` | `u64` | `let e = v.encode();`<br><br><code>e.len() 32bit << 32 |
98 | | -//! | e.as_ptr() 32bit</code> | | `&[T] where T: Encode` | `u64` | `let e = |
99 | | -//! v.encode();`<br><br><code>e.len() 32bit << 32 | e.as_ptr() 32bit</code> | | `[u8; N]` | |
100 | | -//! `u32` | `v.as_ptr()` | | `*const T` | `u32` | `Identity` | |
101 | | -//! | `Option<T>` | `u64` | `let e = v.encode();`<br><br><code>e.len() 32bit << 32 | e.as_ptr() |
102 | | -//! 32bit</code> | | [`T where T: PassBy<PassBy=Inner>`](./pass_by#Inner) | Depends on inner | |
103 | | -//! Depends on inner | | [`T where T: PassBy<PassBy=Codec>`](./pass_by#Codec)|`u64`|<code>v.len() |
104 | | -//! 32bit << 32 |v.as_ptr() 32bit</code>| |
| 100 | +//! | `Vec<T> where T: Encode` | `u64` | `let e = v.encode();`<br><br><code>e.len() 32bit << 32 | e.as_ptr() 32bit</code> | |
| 101 | +//! | `&[T] where T: Encode` | `u64` | `let e = v.encode();`<br><br><code>e.len() 32bit << 32 | e.as_ptr() 32bit</code> | |
| 102 | +//! | `[u8; N]` | `u32` | `v.as_ptr()` | |
| 103 | +//! | `*const T` | `u32` | `Identity` | |
| 104 | +//! | `Option<T>` | `u64` | `let e = v.encode();`<br><br><code>e.len() 32bit << 32 | e.as_ptr() 32bit</code> | |
| 105 | +//! | [`T where T: PassBy<PassBy=Inner>`](./pass_by#Inner) | Depends on inner | Depends on inner | |
| 106 | +//! | [`T where T: PassBy<PassBy=Codec>`](./pass_by#Codec)|`u64`|<code>v.len() 32bit << 32 |v.as_ptr() 32bit</code>| |
105 | 107 | //! |
106 | 108 | //! `Identity` means that the value is converted directly into the corresponding FFI type. |
107 | 109 |
|
|
0 commit comments