pub struct SectionFlags {
pub required: bool,
pub mmap_able: bool,
}Expand description
Flags for a section entry in the container directory.
Fields§
§required: boolBit 0: section is required (older binaries must refuse to open if unknown). When false, unknown section types can be safely skipped.
mmap_able: boolBit 1: section data can be mmap’d for zero-copy access.
Implementations§
Trait Implementations§
Source§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<'de> Deserialize<'de> for SectionFlags
impl<'de> Deserialize<'de> for SectionFlags
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SectionFlags
impl PartialEq for SectionFlags
Source§impl Serialize for SectionFlags
impl Serialize 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.