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