default_fn! macro
This commit is contained in:
parent
bfaec62c87
commit
fde164293b
1 changed files with 10 additions and 0 deletions
|
@ -17,6 +17,16 @@
|
||||||
|
|
||||||
#![macro_use]
|
#![macro_use]
|
||||||
|
|
||||||
|
#[cfg(feature = "specialization")]
|
||||||
|
macro_rules! default_fn {
|
||||||
|
{ $($tt:tt)* } => { default fn $( $tt )* };
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(not(feature = "specialization"))]
|
||||||
|
macro_rules! default_fn {
|
||||||
|
{ $($tt:tt)* } => { fn $( $tt )* };
|
||||||
|
}
|
||||||
|
|
||||||
/// Generates a binary operator implementation for the permutations of by-ref and by-val
|
/// Generates a binary operator implementation for the permutations of by-ref and by-val
|
||||||
macro_rules! impl_operator {
|
macro_rules! impl_operator {
|
||||||
// When it is an unary operator
|
// When it is an unary operator
|
||||||
|
|
Loading…
Reference in a new issue