#[repr(C)]pub struct SectionMiscHeader {
pub ident: [u8; 4],
pub size: [u8; 4],
}Fields§
§ident: [u8; 4]§size: [u8; 4]Implementations§
Source§impl SectionMiscHeader
impl SectionMiscHeader
pub fn from_bytes(buf: &[u8]) -> Result<Self, Error>
Trait Implementations§
Source§impl Clone for SectionMiscHeader
impl Clone for SectionMiscHeader
Source§fn clone(&self) -> SectionMiscHeader
fn clone(&self) -> SectionMiscHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SectionMiscHeader
impl Debug for SectionMiscHeader
Source§impl Default for SectionMiscHeader
impl Default for SectionMiscHeader
Source§fn default() -> SectionMiscHeader
fn default() -> SectionMiscHeader
Returns the “default value” for a type. Read more
Source§impl Plain for SectionMiscHeader
impl Plain for SectionMiscHeader
fn from_bytes(bytes: &[u8]) -> Result<&Self, Error>where
Self: Sized,
fn slice_from_bytes(bytes: &[u8]) -> Result<&[Self], Error>where
Self: Sized,
fn slice_from_bytes_len(bytes: &[u8], len: usize) -> Result<&[Self], Error>where
Self: Sized,
fn from_mut_bytes(bytes: &mut [u8]) -> Result<&mut Self, Error>where
Self: Sized,
fn slice_from_mut_bytes(bytes: &mut [u8]) -> Result<&mut [Self], Error>where
Self: Sized,
fn slice_from_mut_bytes_len(
bytes: &mut [u8],
len: usize,
) -> Result<&mut [Self], Error>where
Self: Sized,
fn copy_from_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for SectionMiscHeader
impl RefUnwindSafe for SectionMiscHeader
impl Send for SectionMiscHeader
impl Sync for SectionMiscHeader
impl Unpin for SectionMiscHeader
impl UnwindSafe for SectionMiscHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more