macro_rules! try_cast_from {
($from:ty, $to:ty) => { ... };
}
Expand description
Implement TryCastFrom
for the specified types.
This is only necessary for types for which as
exists,
but TryFrom
doesn’t (notably floats).
macro_rules! try_cast_from {
($from:ty, $to:ty) => { ... };
}
Implement TryCastFrom
for the specified types.
This is only necessary for types for which as
exists,
but TryFrom
doesn’t (notably floats).