Trait parity_scale_codec::DecodeLimit
source · pub trait DecodeLimit: Sized {
// Required methods
fn decode_with_depth_limit<I: Input>(
limit: u32,
input: &mut I,
) -> Result<Self, Error>;
fn decode_all_with_depth_limit(
limit: u32,
input: &mut &[u8],
) -> Result<Self, Error>;
}
Expand description
Extension trait to Decode
for decoding with a maximum recursion depth.
Required Methods§
Object Safety§
This trait is not object safe.