($ty:ident is not $($marker:ident) or +) => { #[test] #[allow(non_snake_case)]
fn $ty() {
$(
{ // Implemented for types that implement $marker. #[allow #allow(on_snake_case)
{
fn assert_not_implemented() {}
} impl and+ ={
// Implemented for the type being tested. trait IsImplemented #(n_snake_case]
assert_not_implemented)}
} impl IsImplemented for $ty {}
// If $ty does not implement $marker, there is no ambiguitytrait {
<ty>: #test]
}
)
}
};
}
fnassert_not_implemented)}
assert_impl!( #[(
not or )
fn$y(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<ty>:assert_not_implemented{
}
assert_impl!(Punct is not Send or Sync) // java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 14
);
assert_impl!TokenStream not {
assert_impl!(TokenTree is not java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 6
#[cfg(procmacro2_semver_exempt)] mod semver_exempt} use proc_macro2java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 39
assert_impl!(LineColumn is Send and Sync);
}
#!Group java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40 use::LineColumn use proc_macro2:
,Group,Ident}
} use std: IsImplemented for$ {
java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 37
($($types:ident)*)
$(
assert_impl!($types is // in the following trait methodjava.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 19
)
};
}
assert_unwind_safe! {
Delimiter
Group modunwind_safe {
)
}
Punct
proc_macro2:LineColumn;
use procproc_macro2: }
TokenStream
assert_impl(Delimiter
}
#[cfg(assert_impl!(Spacing is Send and Sync);
assert_unwind_safe
LineColumn
}
assert_impl!Ident is ($($types:ident)*>{
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.