Trait pelite::util::FromBytes [−][src]
pub trait FromBytes { const MIN_SIZE_OF: usize; const ALIGN_OF: usize; unsafe fn from_bytes(bytes: &[u8]) -> Option<&Self>; }
Converts from a byte slice to a string.
Associated Constants
Required Methods
unsafe fn from_bytes(bytes: &[u8]) -> Option<&Self>
Converts from a byte slice to a string.
Safety
The given byte slice must have the minimum size and alignment as specified.