An open API service indexing awesome lists of open source software.

https://github.com/limpix31/typology

Type derivation for foreign use
https://github.com/limpix31/typology

crate rust rust-lang

Last synced: 5 months ago
JSON representation

Type derivation for foreign use

Awesome Lists containing this project

README

          

# Typology
###### Type derivation for foreign use

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