This library provides functions for specializing on types dynamically via Any
.
The basic idea is that it allows you to "cast" any T
into any
other U
, if T
and U
are actually the same type.
This is exposed both as freestanding functions, as well as an extension trait that can be imported.
```rust use identity_cast::IdentityCast;
fn printi32speciallyi32
with value {}", v);
}
Err(T
");
}
}
}
```