typology 0.1.1

Type derivation for foreign use
Documentation
  • Coverage
  • 0%
    0 out of 1 items documented0 out of 0 items with examples
  • Size
  • Source code size: 3.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.03 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • LIMPIX31/typology
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LIMPIX31

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);