/rust/registry/src/index.crates.io-6f17d22bba15001f/tinyvec_macros-0.1.1/src/lib.rs
Line | Count | Source (jump to first uncovered line) |
1 | | #![no_std] |
2 | | #![forbid(unsafe_code)] |
3 | | |
4 | | #[macro_export] |
5 | | macro_rules! impl_mirrored { |
6 | | { |
7 | | type Mirror = $tinyname:ident; |
8 | | $( |
9 | | $(#[$attr:meta])* |
10 | | $v:vis fn $fname:ident ($seif:ident : $seifty:ty $(,$argname:ident : $argtype:ty)*) $(-> $ret:ty)? ; |
11 | | )* |
12 | | } => { |
13 | | $( |
14 | | $(#[$attr])* |
15 | | #[inline(always)] |
16 | 0 | $v fn $fname($seif : $seifty, $($argname: $argtype),*) $(-> $ret)? { |
17 | 0 | match $seif { |
18 | 0 | $tinyname::Inline(i) => i.$fname($($argname),*), |
19 | 0 | $tinyname::Heap(h) => h.$fname($($argname),*), |
20 | | } |
21 | 0 | } Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[(u8, char); 4]>>::len Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[(u8, char); 4]>>::truncate Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[(u8, char); 4]> as core::ops::deref::DerefMut>::deref_mut Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[(u8, char); 4]> as core::ops::deref::Deref>::deref Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[char; 4]>>::truncate Unexecuted instantiation: <tinyvec::tinyvec::TinyVec<[char; 4]> as core::ops::deref::Deref>::deref |
22 | | )* |
23 | | }; |
24 | | } |
25 | | |