☰
bytemuck
All crates
?
[
−
]
[src]
Function
bytemuck
::
try_cast
pub fn try_cast<A:
Pod
, B:
Pod
>(a: A) ->
Result
<B,
PodCastError
>
Try to cast
T
into
U
.
Failure
If the types don't have the same size this fails.