pub trait InputLength { fn input_len(&self) -> usize; }
abstract method to calculate the input length
calculates the input length, as indicated by its name, and the name of the trait itself