[][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

ByteSliceAsType

Trait, which implements accessing type as reference from byte slice.

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

as_type_mut

Get mutable reference to the value from slice

as_type_mut_unchecked

Get mutable reference to the value from slice

as_type_unchecked

Get reference to the value from slice