mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
Make use of cfg(doc) in sp-runtime-interface (#4673)
By using `cfg(doc)`, we can generate docs for modules which are only available from `no_std`. This drastically improves the documentation for the developers.
This commit is contained in:
committed by
Shawn Tabrizi
parent
26fa5193cd
commit
96cd57a695
@@ -49,6 +49,9 @@ pub trait IntoPreallocatedFFIValue: RIType {
|
||||
}
|
||||
|
||||
/// Something that can be created from a ffi value.
|
||||
/// Implementations are safe to assume that the `arg` given to `from_ffi_value`
|
||||
/// is only generated by the corresponding [`wasm::IntoFFIValue`](crate::wasm::IntoFFIValue)
|
||||
/// implementation.
|
||||
pub trait FromFFIValue: RIType {
|
||||
/// As `Self` can be an unsized type, it needs to be represented by a sized type at the host.
|
||||
/// This `SelfInstance` is the sized type.
|
||||
|
||||
Reference in New Issue
Block a user