mod cache; mod class; mod common_selectors; mod convert; mod define_class; pub(crate) mod defined_ivars; mod image_info; mod method_family; mod module_info; mod msg_send_retained; mod null_error; mod os_version; mod retain_semantics; mod sync_unsafe_cell; mod writeback;
/// Disallow using this passed in value in const and statics for forwards /// compatibility (this function is not a `const` function). #[inline] pubfn disallow_in_static<T>(item: &'static T) -> &'static T {
item
}
#[deprecated = "having the `impl` inside `extern_methods!` is deprecated, move it outside instead"] pubconstfn extern_methods_unsafe_impl() {}
#[test] #[cfg(any(feature = "unstable-static-sel", feature = "unstable-static-class"))] fn hash_idents_exact_same_ident() {
macro_rules! x {
($x:ident) => {
(__hash_idents!($x), __hash_idents!($x))
};
} let (ident1, ident2) = x!(abc); // This is a limitation of `__hash_idents`, ideally we'd like these // to be different!
assert_eq!(ident1, ident2);
}
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.