Trait dusk_bytes::BadLength[][src]

pub trait BadLength {
    fn bad_length(found: usize, expected: usize) -> Self;
}
Expand description

Trait to be implemented for the associated Error used in [DeserializableSlice::from_slice]. The function is called if the slice given is smaller than the mandatory size for the struct.

Required methods

Invoked when a buffer of bad length is given to [from_slice]

Implementors