[][src]Module lazy_bytes_cast::slice

Slice conversion module

Provides utilities to treat arbitrary types as slice of bytes

Traits

AsByteSlice

Trait which should be implemented for types that are safe to treat as byte

FromByteSlice

Describes a way to read byte slice into particular type.

ReadByteSlice

Describes a way to read byte slice into particular type.

Functions

as_slice

Access value as slice of bytes

as_slice_mut

Access value as mutable slice of bytes

as_type

Get reference to the value from slice, using as_type_unchecked

as_type_mut

Get mutable reference to the value from slice, using as_type_mut_unchecked

as_type_mut_unchecked

Get mutable reference to the value from slice

as_type_unchecked

Get reference to the value from slice