Function try_cast

Source
pub fn try_cast<T: MinimallyAligned>(
    buffer: &[u8],
    offset: u32,
) -> Result<&T, CastError>
Expand description

Try to cast a buffer to a reference