[−][src]Crate cex_derive
This crate is the proc-macro implementation for cex
crate.
Features
-
Result!( OkType throws A,B,... )
which is equivalant toResult<OkType, enumx::Enum!(A,B,...)>
-
ret!() Ok Type or Result
-
throw!() Error Types listed in throws
-
#[ty_pat] match
, which enables "using types as patterns in match arms". -
#[cex] let local_var: pattern = expression;
, which enables all the mentioned features in the expression, e.g try blocks. -
#[cex]
on closures, which enables all the mentioned features in the closure. -
#[cex] fn
, which enables all the mentioned features in the function. -
cex::Logger
derive for enum.
See more details in cex
crate's documents.
Macros
Result |
|
ResultEnvLog | |
ResultLog |
Attribute Macros
cex | tag an |
cex_env_log | tag an |
cex_log | tag an |
Derive Macros
Logger | Implements |