#[repr(C, packed(1))]pub struct HeaderFlags(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl HeaderFlags
impl HeaderFlags
pub fn new(version: DataVersion, arch: Architecture, pkg: Packaging) -> Self
pub fn latest(arch: Architecture, pkg: Packaging) -> Self
pub fn version(&self) -> DataVersion
pub fn architecture(&self) -> Architecture
pub fn packaging(&self) -> Packaging
Trait Implementations§
Source§impl Clone for HeaderFlags
impl Clone for HeaderFlags
Source§fn clone(&self) -> HeaderFlags
fn clone(&self) -> HeaderFlags
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 HeaderFlags
impl Debug for HeaderFlags
Source§impl Default for HeaderFlags
impl Default for HeaderFlags
Source§impl From<u32> for HeaderFlags
impl From<u32> for HeaderFlags
Source§impl Into<u32> for HeaderFlags
impl Into<u32> for HeaderFlags
Source§impl PartialEq for HeaderFlags
impl PartialEq for HeaderFlags
impl Copy for HeaderFlags
impl Pod for HeaderFlags
impl StructuralPartialEq for HeaderFlags
Auto Trait Implementations§
impl Freeze for HeaderFlags
impl RefUnwindSafe for HeaderFlags
impl Send for HeaderFlags
impl Sync for HeaderFlags
impl Unpin for HeaderFlags
impl UnsafeUnpin for HeaderFlags
impl UnwindSafe for HeaderFlags
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.