Struct fuchsia_zbi_abi::zbi_header_t
source · #[repr(C)]pub struct zbi_header_t {
pub zbi_type: U32,
pub length: U32,
pub extra: U32,
pub flags: U32,
pub reserved_0: U32,
pub reserved_1: U32,
pub magic: U32,
pub crc32: U32,
}
Fields§
§zbi_type: U32
§length: U32
§extra: U32
§flags: U32
§reserved_0: U32
§reserved_1: U32
§magic: U32
§crc32: U32
Trait Implementations§
source§impl Clone for zbi_header_t
impl Clone for zbi_header_t
source§fn clone(&self) -> zbi_header_t
fn clone(&self) -> zbi_header_t
Returns a copy 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 zbi_header_t
impl Debug for zbi_header_t
source§impl Default for zbi_header_t
impl Default for zbi_header_t
source§fn default() -> zbi_header_t
fn default() -> zbi_header_t
Returns the “default value” for a type. Read more
source§impl FromBytes for zbi_header_twhere
U32: FromBytes,
impl FromBytes for zbi_header_twhere
U32: FromBytes,
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for zbi_header_twhere
U32: FromZeros,
impl FromZeros for zbi_header_twhere
U32: FromZeros,
source§impl IntoBytes for zbi_header_twhere
U32: IntoBytes,
HasPadding<zbi_header_t, { _ }>: ShouldBe<false>,
impl IntoBytes for zbi_header_twhere
U32: IntoBytes,
HasPadding<zbi_header_t, { _ }>: ShouldBe<false>,
impl Copy for zbi_header_t
impl Unaligned for zbi_header_twhere
U32: Unaligned,
Auto Trait Implementations§
impl RefUnwindSafe for zbi_header_t
impl Send for zbi_header_t
impl Sync for zbi_header_t
impl Unpin for zbi_header_t
impl UnwindSafe for zbi_header_t
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