// Since ZeroMap has generic parameters, the Rust compiler cannot // prove the covariance of the lifetimes. To use derive(Yokeable) // with a type such as ZeroMap, you just add the attribute // yoke(prove_covariance_manually) #[derive(Yokeable)] #[yoke(prove_covariance_manually)] pubstruct ZeroMapExample<'a> {
map: ZeroMap<'a, str, u16>,
}
// TODO(#4119): Make this example compile /* #[derive(Yokeable)] pubstructMaybeSizedWrapWithLifetime<'a,T,Q:?Sized,U:?Sized>{ x:T, y:Option<T>, ignored:&'aU, q:Q, }
*/
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.