2 releases
0.1.1 | May 13, 2024 |
---|---|
0.1.0 | May 13, 2024 |
#939 in Rust patterns
3KB
Typology
Type derivation for foreign use
use typology::{Typology, type_of};
#[derive(Debug, Typology)]
struct User {
username: String,
age: u8,
other: Box<[String]>
}
// Will be String
type UsernameField = type_of!(User::username);
Dependencies
~225–670KB
~16K SLoC