derive_deref icon indicating copy to clipboard operation
derive_deref copied to clipboard

Adds `#[derive(Deref)]` and `#[derive(DerefMut)]`

Results 3 derive_deref issues
Sort by recently updated
recently updated
newest added

Use `deref_target` when there is more than one field to chose from (excluding any PhantomData, as before). ``` #[derive(Deref)] struct StringWrapper { additional_data: i32, more_data: i32, #[deref_target] inner: String, };...

When I do `#[derive(Deref)] struct Col(RGB);` why am I getting > error: the trait bound `rgb::RGB: Deref` is not satisfied ? Using this RGB type: https://crates.io/crates/rgb

I like this crate, it makes some of my definitions much shorter. But some types, which derive Deref/DerefMut, also have another field, so it would be nice, if such traits...