pub struct SectionFlags(pub u64);Expand description
Section attribute flags from a section header’s sh_flags field.
Tuple Fields§
§0: u64Implementations§
Source§impl SectionFlags
impl SectionFlags
Sourcepub const fn is_alloc(self) -> bool
pub const fn is_alloc(self) -> bool
Tests whether the section occupies memory during execution.
Sourcepub const fn is_writable(self) -> bool
pub const fn is_writable(self) -> bool
Tests whether the section is writable during execution.
Sourcepub const fn is_executable(self) -> bool
pub const fn is_executable(self) -> bool
Tests whether the section contains executable instructions.
Trait Implementations§
Source§impl Clone for SectionFlags
impl Clone for SectionFlags
impl Copy for SectionFlags
Source§impl Debug for SectionFlags
impl Debug for SectionFlags
impl Eq for SectionFlags
Source§impl Hash for SectionFlags
impl Hash for SectionFlags
Source§impl PartialEq for SectionFlags
impl PartialEq for SectionFlags
impl StructuralPartialEq for SectionFlags
Auto Trait Implementations§
impl Forget for SectionFlags
impl Freeze for SectionFlags
impl Move for SectionFlags
impl RefUnwindSafe for SectionFlags
impl Send for SectionFlags
impl Sync for SectionFlags
impl Unpin for SectionFlags
impl UnsafeUnpin 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