File tree 2 files changed +4
-7
lines changed
2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ generic type bounds.
12
12
## Usage
13
13
14
14
The ` derive_where ` macro can be used just like std's ` #[derive(...)] `
15
- statements, with the only caveat that it requires to derive ` DeriveWhere `
16
- ([ #27 ] ):
15
+ statements:
17
16
18
17
``` rust
19
18
#[derive_where(Clone , Debug )]
@@ -242,7 +241,7 @@ accompanied by a minor version bump. If MSRV is important to you, use
242
241
[ derivative] ( https://crates.io/crates/derivative )
243
242
([ ![ Crates.io] ( https://img.shields.io/crates/v/derivative.svg )] ( https://crates.io/crates/derivative ) )
244
243
is a great alternative with many options. Notably it has no ` no_std `
245
- support.
244
+ support and requires to ` #[derive(Derivative)] ` to use .
246
245
247
246
## Changelog
248
247
Original file line number Diff line number Diff line change 12
12
//! # Usage
13
13
//!
14
14
//! The `derive_where` macro can be used just like std's `#[derive(...)]`
15
- //! statements, with the only caveat that it requires to derive `DeriveWhere`
16
- //! ([#27]):
15
+ //! statements:
17
16
//!
18
17
//! ```
19
18
//! # use std::marker::PhantomData;
181
180
//! # }
182
181
//! # }
183
182
//! # }
184
- //!
185
183
//! #[derive_where(Zeroize(crate = "zeroize_"))]
186
184
//! struct Example(#[derive_where(Zeroize(fqs))] i32);
187
185
//!
303
301
//! [derivative](https://crates.io/crates/derivative)
304
302
//! ([](https://crates.io/crates/derivative))
305
303
//! is a great alternative with many options. Notably it has no `no_std`
306
- //! support.
304
+ //! support and requires to `#[derive(Derivative)]` to use .
307
305
//!
308
306
//! # Changelog
309
307
//!
You can’t perform that action at this time.
0 commit comments