pub struct SegmentFlags {
pub executable: bool,
pub writable: bool,
pub readable: bool,
pub contains_data: bool,
pub contains_code: bool,
pub deny_write: bool,
pub deny_execute: bool,
}
Fields§
§executable: bool
§writable: bool
§readable: bool
§contains_data: bool
§contains_code: bool
§deny_write: bool
§deny_execute: bool
Implementations§
source§impl SegmentFlags
impl SegmentFlags
pub fn new() -> Self
pub fn executable(self, executable: bool) -> Self
pub fn writable(self, writable: bool) -> Self
pub fn readable(self, readable: bool) -> Self
pub fn contains_data(self, contains_data: bool) -> Self
pub fn contains_code(self, contains_code: bool) -> Self
pub fn deny_write(self, deny_write: bool) -> Self
pub fn deny_execute(self, deny_execute: bool) -> Self
Trait Implementations§
source§impl Clone for SegmentFlags
impl Clone for SegmentFlags
source§fn clone(&self) -> SegmentFlags
fn clone(&self) -> SegmentFlags
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 SegmentFlags
impl Debug for SegmentFlags
source§impl Default for SegmentFlags
impl Default for SegmentFlags
source§fn default() -> SegmentFlags
fn default() -> SegmentFlags
Returns the “default value” for a type. Read more
source§impl Hash for SegmentFlags
impl Hash 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