[][src]Function lokacore::try_cast

pub fn try_cast<A, B>(a: A) -> Result<B, PodCastError> where
    A: Pod,
    B: Pod

Try to cast T into U.

Failure

  • If the types don't have the same size this fails.