Crate see_derive
source ·Expand description
Derive For the traits See
and an extension trait Load
see-through
See Derive
A inner crate that provides #[derive(...)]
for See
& Look
trait in the repository.
Usage
The macros provided are
#[derive(See)]
#[derive(Look)]
this will automatically deriveSee
as it’s an internal dependencyauto_load!()
this macro loads all the unit structs which allow bothSee
andLook
to access fields inside generics. This macro should be called in the root of the repository and after all theSee
andLook
derivation are done.
Description
For more details on how to use this, please visit see-through
Macros
Derive Macros
- The derive macro includes the visitors in your codebase. Which are created during the use of
#[derive(See)]
- Derives the trait
Look
as well asSee
,Look
trait has autoimplemenation - Derives the trait
See
, providing auto implementation forSee
, while also combining the loading visitors into a single place.