Coverage Report

Created: 2025-10-10 07:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/overload-0.1.1/src/unary.rs
Line
Count
Source
1
#[doc(hidden)]
2
#[macro_export(local_inner_macros)]
3
macro_rules! _overload_unary {
4
    (-, $($t:tt)+) => (_overload_unary_internal!(Neg, neg, $($t)+););
5
    (!, $($t:tt)+) => (_overload_unary_internal!(Not, not, $($t)+););
6
}
7
8
#[doc(hidden)]
9
#[macro_export(local_inner_macros)]
10
macro_rules! _overload_unary_internal {
11
    ($op_trait:ident, $op_fn:ident, $i:ident, $t:ty, $out:ty, $body:block) => (        
12
        impl ops::$op_trait for $t {
13
            type Output = $out;
14
0
            fn $op_fn(self) -> Self::Output {
15
0
                let $i = self;
16
                $body
17
0
            }
Unexecuted instantiation: <nu_ansi_term::rgb::Rgb as core::ops::arith::Neg>::neg
Unexecuted instantiation: <&nu_ansi_term::rgb::Rgb as core::ops::arith::Neg>::neg
18
        }
19
    );
20
}