pub struct SegmentFlags(/* private fields */);
Implementations§
Source§impl SegmentFlags
impl SegmentFlags
pub const fn empty() -> Self
pub fn from_header(header: &ProgramHeader64<LittleEndian>) -> Self
pub fn contains(self, flag: SegmentFlags) -> bool
pub const fn from_u32(raw: u32) -> SegmentFlags
Sourcepub const fn with(self, flags: SegmentFlags) -> SegmentFlags
pub const fn with(self, flags: SegmentFlags) -> SegmentFlags
Returns self with the specified flags set.
Sourcepub const fn without(self, flags: SegmentFlags) -> SegmentFlags
pub const fn without(self, flags: SegmentFlags) -> SegmentFlags
Returns self with the specified flags cleared.
pub const fn raw(self) -> u32
Trait Implementations§
Source§impl BitAnd for SegmentFlags
impl BitAnd for SegmentFlags
Source§impl BitOrAssign for SegmentFlags
impl BitOrAssign for SegmentFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreSource§impl Clone for SegmentFlags
impl Clone for SegmentFlags
Source§fn clone(&self) -> SegmentFlags
fn clone(&self) -> SegmentFlags
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 SegmentFlags
impl Debug for SegmentFlags
Source§impl Display for SegmentFlags
impl Display for SegmentFlags
Source§impl PartialEq for SegmentFlags
impl PartialEq for SegmentFlags
impl Copy for SegmentFlags
impl Eq for SegmentFlags
impl StructuralPartialEq for SegmentFlags
Auto Trait Implementations§
impl Freeze for SegmentFlags
impl RefUnwindSafe for SegmentFlags
impl Send for SegmentFlags
impl Sync for SegmentFlags
impl Unpin for SegmentFlags
impl UnwindSafe for SegmentFlags
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