pub struct SectionFlags(/* private fields */);
Implementations§
Source§impl SectionFlags
impl SectionFlags
pub const fn empty() -> Self
pub fn from_header(header: &SectionHeader64<LittleEndian>) -> Self
pub fn contains(self, flag: SectionFlags) -> bool
pub const fn from_u32(raw: u32) -> SectionFlags
Sourcepub const fn with(self, flags: SectionFlags) -> SectionFlags
pub const fn with(self, flags: SectionFlags) -> SectionFlags
Returns self with the specified flags set.
Sourcepub const fn without(self, flags: SectionFlags) -> SectionFlags
pub const fn without(self, flags: SectionFlags) -> SectionFlags
Returns self with the specified flags cleared.
pub const fn raw(self) -> u64
pub fn should_retain(&self) -> bool
Trait Implementations§
Source§impl BitAnd for SectionFlags
impl BitAnd for SectionFlags
Source§impl BitOrAssign for SectionFlags
impl BitOrAssign for SectionFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl Clone for SectionFlags
impl Clone for SectionFlags
Source§fn clone(&self) -> SectionFlags
fn clone(&self) -> SectionFlags
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 SectionFlags
impl Debug for SectionFlags
Source§impl Default for SectionFlags
impl Default for SectionFlags
Source§fn default() -> SectionFlags
fn default() -> SectionFlags
Returns the “default value” for a type. Read more
Source§impl Display for SectionFlags
impl Display for SectionFlags
Source§impl From<u64> for SectionFlags
impl From<u64> for SectionFlags
Source§impl Hash for SectionFlags
impl Hash for SectionFlags
Source§impl Ord for SectionFlags
impl Ord for SectionFlags
Source§fn cmp(&self, other: &SectionFlags) -> Ordering
fn cmp(&self, other: &SectionFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SectionFlags
impl PartialEq for SectionFlags
Source§impl PartialOrd for SectionFlags
impl PartialOrd for SectionFlags
impl Copy for SectionFlags
impl Eq for SectionFlags
impl StructuralPartialEq for SectionFlags
Auto Trait Implementations§
impl Freeze for SectionFlags
impl RefUnwindSafe for SectionFlags
impl Send for SectionFlags
impl Sync for SectionFlags
impl Unpin for SectionFlags
impl UnwindSafe for SectionFlags
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