// This is for when we're implementing Yoke on a complex type such that it's not // obvious to the compiler that the lifetime is covariant
macro_rules! unsafe_complex_yoke_impl {
() => { fn transform(&'a self) -> &'a Self::Output { unsafe { mem::transmute(self) }
}
unsafeimpl<'a, T: 'static + for<'b> Yokeable<'b>> Yokeable<'a> for Option<T> { type Output = Option<<T as Yokeable<'a>>::Output>;
unsafe_complex_yoke_impl!();
}
unsafeimpl<'a, T1: 'static + for<'b> Yokeable<'b>, T2: 'static + for<'b> Yokeable<'b>> Yokeable<'a> for (T1, T2)
{ type Output = (<T1 as Yokeable<'a>>::Output, <T2 as Yokeable<'a>>::Output);
unsafe_complex_yoke_impl!();
}
unsafeimpl<'a, T: Yokeable<'a>, const N: usize> Yokeable<'a> for [T; N] { type Output = [<T as Yokeable<'a>>::Output; N];
unsafe_complex_yoke_impl!();
}
Messung V0.5 in Prozent
¤ 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.0.14Bemerkung:
(vorverarbeitet am 2026-06-18)
¤
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.