blob: e3bbfac7deed30c6b8f4b7efc1b9c81a175b7c5d [file] [log] [blame]
window.SIDEBAR_ITEMS = {"enum":[["CheckedCastError","The things that can go wrong when casting between [`CheckedBitPattern`] data forms."]],"fn":[["cast","Cast `T` into `U`"],["cast_mut","Cast `&mut T` into `&mut U`."],["cast_ref","Cast `&T` into `&U`."],["cast_slice","Cast `&[A]` into `&[B]`."],["cast_slice_mut","Cast `&mut [T]` into `&mut [U]`."],["from_bytes","Re-interprets `&[u8]` as `&T`."],["from_bytes_mut","Re-interprets `&mut [u8]` as `&mut T`."],["pod_read_unaligned","Reads the slice into a `T` value."],["try_cast","Try to cast `T` into `U`."],["try_cast_mut","Try to convert a `&mut T` into `&mut U`."],["try_cast_ref","Try to convert a `&T` into `&U`."],["try_cast_slice","Try to convert `&[A]` into `&[B]` (possibly with a change in length)."],["try_cast_slice_mut","Try to convert `&mut [A]` into `&mut [B]` (possibly with a change in length)."],["try_from_bytes","Re-interprets `&[u8]` as `&T`."],["try_from_bytes_mut","Re-interprets `&mut [u8]` as `&mut T`."],["try_pod_read_unaligned","Reads from the bytes as if they were a `T`."]],"trait":[["CheckedBitPattern","A marker trait that allows types that have some invalid bit patterns to be used in places that otherwise require [`AnyBitPattern`] or `Pod` types by performing a runtime check on a perticular set of bits. This is particularly useful for types like fieldless (‘C-style’) enums, [`char`], bool, and structs containing them."]]};