pub fn display_number(&mut self, number: u16) -> Result<(), Error<E>> {
        
        if number > 9999 {
            return Err(Error::InvalidInputData);
        } 

        let digits = TWIDisplay::<I2C>::get_digits(number);
        
        for (idx, digit) in digits.iter().enumerate() {
            self.display_digit(idx as u8, *digit)?
        }       

        Ok(())

    }
/// Display a number using all four digits
// TO DO: ADD A BOOLEAN SWITCH "with_leading_zeros"
Display a number using all four digits
TO DO: ADD A BOOLEAN SWITCH "with_leading_zeros"
Display a number using all four digits TO DO : ADD A BOOLEAN SWITCH " with_leading_zeros "
pub fn display_number(&mut self, number: u16) -> Result<(), Error<E>> {
        if number > 9999 {
            return Err(Error::InvalidInputData);
        } 
        let digits = TWIDisplay::<I2C>::get_digits(number);
        for (idx, digit) in digits.iter().enumerate() {
            self.display_digit(idx as u8, *digit)?
        }       
        Ok(())
    }
pub fn display_number ( & mut self , number : u16 ) -> Result < ( ) , Error < E > > { if number > 9999 { return Err ( Error :: InvalidInputData ) ; } let digits = TWIDisplay :: < I2C > :: get_digits ( number ) ; for ( idx , digit ) in digits . iter ( ) . enumerate ( ) { self . display_digit ( idx as u8 , * digit ) ? } Ok ( ( ) ) }
Display a number using all four digits
TO DO: ADD A BOOLEAN SWITCH "with_leading_zeros"
Display a number using all four digits TO DO : ADD A BOOLEAN SWITCH " with_leading_zeros "
&mut self
number
u16
&mut self
number
u16