This library contains a single trait [AsStd140] which is implemented for [mint] types that can be converted to [std140] types.
```rust use mint_std140::AsStd140;
let mintvector = mint::Vector2 { x: 0.0f32, y: 0.0f32 }; let std140vector = mintvector.asstd140(); asserteq!(mintvector.x, std140vector[0]); asserteq!(mintvector.y, std140vector[1]);
let mintmatrix = mint::ColumnMatrix2 { x: mint::Vector2 { x: 0.0f32, y: 1.0f32 }, y: mint::Vector2 { x: 2.0f32, y: 3.0f32 }, }; let std140matrix = mintmatrix.asstd140(); ```