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