/// Try modifying self by applying a provided value. pub(crate) trait TryApply<T>: Sized { /// The type returned in the event of an error. If this is returned, self must not have been modified. type Error;
/// Try applying the provided value, modifying self. /// /// IMPORTANT: In case of an error, self must not be modified! fn try_apply(&mutself, value: T) -> Result<(), Self::Error>;
/// Try applying the provided value, modifying and returning self. #[expect(dead_code, reason = "May use later")] #[inline] fn try_chain_apply(mutself, value: T) -> Result<Self, Self::Error> { self.try_apply(value)?;
Ok(self)
}
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-06-22)
¤
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.