pub fn time(mut self, time: Time, dim: i8) -> Result<Self, String> {
        check_dim!(dim);
        self.pmapi_repr |= (time as u32) << TIME_SCALE_LSB;
        self.pmapi_repr |= ((dim as u32) & LS_FOUR_BIT_MASK) << TIME_DIM_LSB;
        Ok(self)
    }
/// Modifies and returns the unit with given time scale and dimension
Modifies and returns the unit with given time scale and dimension
Modifies and returns the unit with given time scale and dimension
pub fn time(mut self, time: Time, dim: i8) -> Result<Self, String> {
        check_dim!(dim);
        self.pmapi_repr |= (time as u32) << TIME_SCALE_LSB;
        self.pmapi_repr |= ((dim as u32) & LS_FOUR_BIT_MASK) << TIME_DIM_LSB;
        Ok(self)
    }
pub fn time ( mut self , time : Time , dim : i8 ) -> Result < Self , String > { check_dim ! ( dim ) ; self . pmapi_repr |= ( time as u32 ) << TIME_SCALE_LSB ; self . pmapi_repr |= ( ( dim as u32 ) & LS_FOUR_BIT_MASK ) << TIME_DIM_LSB ; Ok ( self ) }
Modifies and returns the unit with given time scale and dimension
Modifies and returns the unit with given time scale and dimension
mut self
time
Time
dim
i8