@@ -237,20 +237,25 @@ pub trait DispatchableConstructorInfo<const ID: u32> {
237
237
const LABEL : & ' static str ;
238
238
}
239
239
240
- /// todo: comment
240
+ /// The ABI encoding/decoding scheme.
241
+ #[ derive( Debug , Clone , Copy ) ]
241
242
pub enum Encoding {
243
+ /// Parity's SCALE codec.
242
244
Scale ,
245
+ /// Solidity ABI encoding.
243
246
Solidity ,
244
247
}
245
248
246
- /// Marker type for SCALE encoding. Used with [`AbiEncodeWith`], [`AbiDecodeWith`] and
247
- /// `DecodeMessageResult`.
248
- #[ derive( Debug , Default , Clone ) ]
249
+ /// Marker type for SCALE encoding.
250
+ ///
251
+ /// Used with [`AbiEncodeWith`], [`AbiDecodeWith`] and `DecodeMessageResult`.
252
+ #[ derive( Debug , Default , Clone , Copy ) ]
249
253
pub struct ScaleEncoding ;
250
254
251
- /// Marker type for Solidity ABI encoding. Used with [`AbiEncodeWith`],
252
- /// [`AbiDecodeWith`] and `DecodeMessageResult`.
253
- #[ derive( Debug , Default , Clone ) ]
255
+ /// Marker type for Solidity ABI encoding.
256
+ ///
257
+ /// Used with [`AbiEncodeWith`], [`AbiDecodeWith`] and `DecodeMessageResult`.
258
+ #[ derive( Debug , Default , Clone , Copy ) ]
254
259
pub struct SolEncoding ;
255
260
256
261
/// Trait for ABI-specific encoding with support for both slice and vector buffers.
0 commit comments