Trait pelite::util::FromBytes

source ·
pub trait FromBytes {
    const MIN_SIZE_OF: usize;
    const ALIGN_OF: usize;

    unsafe fn from_bytes(bytes: &[u8]) -> Option<&Self>;
}
Expand description

Converts from a byte slice to a string.

Required Associated Constants

Minimum size argument.

Alignment argument.

Required Methods

Converts from a byte slice to a string.

Safety

The given byte slice must have the minimum size and alignment as specified.

Implementors