typology

Crates.iotypology
lib.rstypology
version0.1.1
created_at2024-05-13 15:24:38.328215+00
updated_at2024-05-13 15:30:29.993873+00
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: 0

cargo fmt