pino_deref

Crates.iopino_deref
lib.rspino_deref
version0.1.1
sourcesrc
created_at2023-02-10 06:03:05.383699
updated_at2023-02-10 06:11:02.213002
descriptionDerive macro for Deref and DerefMut
homepage
repositoryhttps://github.com/MrPicklePinosaur/pino_utils
max_upload_size
id781664
size7,277
Daniel Liu (MrPicklePinosaur)

documentation

README

pino_deref

Derive macro for Deref and DerefMut

crates.io docs.rs MIT/Apache 2.0

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"));
}
Commit count: 12

cargo fmt