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.
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.