pub trait DecodeWithMemTracking: Decode { }Expand description
Marker trait used for identifying types that call the Input::on_before_alloc_mem hook
while decoding.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
impl DecodeWithMemTracking for bool
impl DecodeWithMemTracking for f32
impl DecodeWithMemTracking for f64
impl DecodeWithMemTracking for i8
impl DecodeWithMemTracking for i16
impl DecodeWithMemTracking for i32
impl DecodeWithMemTracking for i64
impl DecodeWithMemTracking for i128
impl DecodeWithMemTracking for u8
impl DecodeWithMemTracking for u16
impl DecodeWithMemTracking for u32
impl DecodeWithMemTracking for u64
impl DecodeWithMemTracking for u128
impl DecodeWithMemTracking for ()
impl DecodeWithMemTracking for Bytes
Available on crate feature
bytes only.