typology

Crates.iotypology
lib.rstypology
version0.1.1
sourcesrc
created_at2024-05-13 15:24:38.328215
updated_at2024-05-13 15:30:29.993873
descriptionType derivation for foreign use
homepagehttps://github.com/limpix31/typology
repositoryhttps://github.com/limpix31/typology.git
max_upload_size
id1238562
size2,279
Danil Karpenko (LIMPIX31)

documentation

https://docs.rs/typology

README

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);
Commit count: 1

cargo fmt