| Crates.io | pino_deref |
| lib.rs | pino_deref |
| version | 0.1.1 |
| created_at | 2023-02-10 06:03:05.383699+00 |
| updated_at | 2023-02-10 06:11:02.213002+00 |
| description | Derive macro for Deref and DerefMut |
| homepage | |
| repository | https://github.com/MrPicklePinosaur/pino_utils |
| max_upload_size | |
| id | 781664 |
| size | 7,277 |
Example usage
use pino_deref::{Deref, DerefMut};
#[derive(Deref, DerefMut)]
struct Nametag(pub String);
fn main() {
let nametag = Nametag("pinosaur".into());
assert_eq!(*nametag, String::from("pinosaur"));
}