Faster processing of this pointer.

This commit is contained in:
Stephen Chung
2023-05-07 22:25:01 +08:00
parent 0a7cca9910
commit bfe39a9c7c
9 changed files with 82 additions and 44 deletions

View File

@@ -1186,6 +1186,7 @@ impl Dynamic {
/// it is cloned into a [`Dynamic`] with a normal value.
///
/// Returns itself if types mismatched.
#[allow(unused_mut)]
pub(crate) fn try_cast_raw<T: Any>(mut self) -> Result<T, Self> {
// Coded this way in order to maximally leverage potentials for dead-code removal.