#![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(nightly, feature(never_type))] #![allow(clippy::unnecessary_mut_passed)] // testing correct signatures rather than actual code #![allow(dead_code)] // some code is tested for type checking only
#[cfg(not(feature = "std"))] externcrate alloc;
#[cfg(not(feature = "std"))] use alloc::{borrow::ToOwned, collections::VecDeque, string::String, vec, vec::Vec};
#[cfg(feature = "std")] use std::collections::VecDeque;
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for Types { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate an `AsMut` impl for the field type, by // producing a trait implementations conflict error during compilation, if it does. impl AsMut<Helper> for Types { fn as_mut(&mutself) -> &mut Helper {
&mutself.0
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for TypesWithInner { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for TypesWithRenamedInner { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypes { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate an `AsMut` impl for the field type, by // producing a trait implementations conflict error during compilation, if it does. impl AsMut<Helper> for FieldTypes { fn as_mut(&mutself) -> &mut Helper {
&mutself.0
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypesWithInner { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypesWithRenamedInner { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding // to the field type, by producing a trait implementations conflict error during // compilation, if it does. impl<T: AsMut<bool>> AsMut<bool> for Types<T> { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding // to the field type, by producing a trait implementations conflict error during // compilation, if it does. impl<T: AsMut<bool>> AsMut<bool> for FieldTypes<T> { fn as_mut(&mutself) -> &mut bool { self.0.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for Types { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate an `AsMut` impl for the field type, by // producing a trait implementations conflict error during compilation, if it does. impl AsMut<Helper> for Types { fn as_mut(&mutself) -> &mut Helper {
&mutself.first
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for TypesWithInner { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for TypesWithRenamedInner { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypes { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate an `AsMut` impl for the field type, by // producing a trait implementations conflict error during compilation, if it does. impl AsMut<Helper> for FieldTypes { fn as_mut(&mutself) -> &mut Helper {
&mutself.first
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypesWithInner { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding to // the field type, by producing a trait implementations conflict error during compilation, // if it does. impl AsMut<bool> for FieldTypesWithRenamedInner { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding // to the field type, by producing a trait implementations conflict error during // compilation, if it does. impl<T: AsMut<bool>> AsMut<bool> for Types<T> { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate a blanket `AsMut` impl forwarding // to the field type, by producing a trait implementations conflict error during // compilation, if it does. impl<T: AsMut<bool>> AsMut<bool> for FieldTypes<T> { fn as_mut(&mutself) -> &mut bool { self.first.as_mut()
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for the skipped field, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<f64> for Skip { fn as_mut(&mutself) -> &mut f64 {
&mutself.2
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for the third field, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<f64> for Field { fn as_mut(&mutself) -> &mut f64 {
&mutself.2
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for the field type, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<Vec<u8>> for Types { fn as_mut(&mutself) -> &mut Vec<u8> {
&mutself.1
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for the skipped field, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<f64> for Skip { fn as_mut(&mutself) -> &mut f64 {
&mutself.third
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for the `third` field, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<f64> for Field { fn as_mut(&mutself) -> &mut f64 {
&mutself.third
}
}
// Asserts that the macro expansion doesn't generate `AsMut` impl for unmentioned type, by // producing trait implementations conflict error during compilation, if it does. impl AsMut<Vec<u8>> for Types { fn as_mut(&mutself) -> &mut Vec<u8> {
&mutself.second
}
}
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.