StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.
| 1 | #[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)] |
| 2 | pub(super) struct GlyphIndex<T>(pub(super) T); |
| 3 | |
| 4 | impl GlyphIndex<usize> { |
| 5 | pub(super) fn as_f32(&self) -> GlyphIndex<f32> { |
| 6 | GlyphIndex(self.0 as f32) |
| 7 | } |
| 8 | } |
| 9 |