Docs.rs
derive_constructors_proc-1.0.0
derive_constructors_proc 1.0.0
Permalink
Docs.rs crate page
Links
Repository
crates.io
Source
Owners
JorgeRicoVivas
Dependencies
convert_case ^0.6.0
normal
proc-macro2 ^1.0.78
normal
quote ^1.0.35
normal
syn ^1.0.109
normal
Versions
75%
of the crate is documented
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
Crate derive_constructors_proc
derive_
constructors_
proc
1.0.0
All Items
Crate Items
Attribute Macros
Derive Macros
Crate
derive_
constructors_
proc
Copy item path
Source
Attribute Macros
§
constructor
Allows you to define a constructor function, inside the proc attribute you can customize the implementation by giving this information following attributes (Note every attribute is optional):
Derive Macros
§
From
On structs it allows to Derive the
From
trait where a tuple of the fields are passed to the
From::from
, for example:
TryFrom
It derives
TryFrom
trait where a tuple of this struct’s fields are passed to the
TryFrom::try_from
function, for example