pub fn display_time(&mut self, hours: u8, minutes: u8, dot: bool) -> Result<(), Error<E>> {
                
        if hours > 23 || minutes > 59 {
            return Err(Error::InvalidInputData)
        } else {            
            
            let time_value = (hours as u16) * 100 + minutes as u16;
            
            self.display_number(time_value)?

        };
        
        match dot {            
            true => self.display_dots([false, true, false, false])?, // dot at second position
            false => self.display_dots([false, false, false, false])?,
        }
        
        Ok(())

    }
/// Display time in HH:MM format, with an optional dot between them
Display time in HH:MM format, with an optional dot between them
Display time in HH : MM format with an optional dot between them
pub fn display_time(&mut self, hours: u8, minutes: u8, dot: bool) -> Result<(), Error<E>> {
        if hours > 23 || minutes > 59 {
            return Err(Error::InvalidInputData)
        } else {            
            let time_value = (hours as u16) * 100 + minutes as u16;
            self.display_number(time_value)?
        };
        match dot {            
            true => self.display_dots([false, true, false, false])?, // dot at second position
            false => self.display_dots([false, false, false, false])?,
        }
        Ok(())
    }
pub fn display_time ( & mut self , hours : u8 , minutes : u8 , dot : bool ) -> Result < ( ) , Error < E > > { if hours > 23 || minutes > 59 { return Err ( Error :: InvalidInputData ) } else { let time_value = ( hours as u16 ) * 100 + minutes as u16 ; self . display_number ( time_value ) ? } ; match dot { true => self . display_dots ( [ false , true , false , false ] ) ? , // dot at second position false => self . display_dots ( [ false , false , false , false ] ) ? , } Ok ( ( ) ) }
Display time in HH:MM format, with an optional dot between them
Display time in HH : MM format with an optional dot between them
&mut self
hours
u8
minutes
u8
dot
bool
&mut self
hours
u8
minutes
u8
dot
bool