Trait dusk_bytes::BadLength[][src]

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

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]

Loading content...

Implementors

impl BadLength for Error[src]

Loading content...