Type Alias AlignedTryCastError
type AlignedTryCastError = ConvertError<Infallible, SizeError<Src, Dst>, ValidityError<Src, Dst>>
The error type of well-aligned, fallible casts.
This is like TryCastError, but for casts that are always well-aligned.
It is identical to TryCastError, except that its alignment error is
Infallible.
As of this writing, none of zerocopy's API produces this error directly. However, it is useful since it permits users to infallibly discard alignment errors when they can prove statically that alignment errors are impossible.
Examples
use Infallible;
use *;
# use *;