Trait dusk_bytes::BadLength [−][src]
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
fn bad_length(found: usize, expected: usize) -> Self
[src]
Invoked when a buffer of bad length is given to [from_slice
]