macro_rules! try_cast {
($e:expr => $t:ty) => { ... };
}Expand description
Attempts to perform a lossless cast.
This macro evaluates to an expression of type Option<$t>. It is similar to
[TryInto], but it works in a const context.
macro_rules! try_cast {
($e:expr => $t:ty) => { ... };
}Attempts to perform a lossless cast.
This macro evaluates to an expression of type Option<$t>. It is similar to
[TryInto], but it works in a const context.