Seregon/StratoSDK

StratoSDK is a framework with a declarative approach similar to Flutter/React, written and designed entirely for Rust.

Rust/27.3 KB/No license
crates/strato-ui-core/src/elements/shimmering_text/glyph_index.rs
1#[derive(Copy, Clone, Debug, Hash, PartialEq, Eq)]
2pub(super) struct GlyphIndex<T>(pub(super) T);
3 
4impl GlyphIndex<usize> {
5 pub(super) fn as_f32(&self) -> GlyphIndex<f32> {
6 GlyphIndex(self.0 as f32)
7 }
8}
9