macro_rules! cast {
($e:expr) => { ... };
($e:expr => $t:ty) => { ... };
}Expand description
Performs a lossless cast.
cast! performs the same cast as CastFrom::cast_from or
CastInto::cast_into, but unlike those methods, it works in a const
context.