Commissioned officers and warrant officers may be assigned, reassigned, transferred, or detailed to and from units within the National Guard as prescribed by the laws of the United States and this code and the regulations and rules issued thereunder.