pub struct SectionFlags(pub u32);Expand description
Values for Section*::flags.
Tuple Fields§
§0: u32Implementations§
Source§impl SectionFlags
impl SectionFlags
Sourcepub fn typ(self) -> SectionType
pub fn typ(self) -> SectionType
Get the section type field.
Sourcepub const fn with_type(self, typ: SectionType) -> SectionFlags
pub const fn with_type(self, typ: SectionType) -> SectionFlags
Set the section type field.
Source§impl SectionFlags
impl SectionFlags
Sourcepub fn contains(self, other: SectionFlags) -> bool
pub fn contains(self, other: SectionFlags) -> bool
Returns true if all bits set in other are set in self.
Sourcepub fn intersects(self, other: SectionFlags) -> bool
pub fn intersects(self, other: SectionFlags) -> bool
Returns true if any bit set in other is set in self.
Sourcepub const fn with(self, other: SectionFlags) -> Self
pub const fn with(self, other: SectionFlags) -> Self
Returns self with the specified flags set.
Sourcepub const fn without(self, other: SectionFlags) -> Self
pub const fn without(self, other: SectionFlags) -> Self
Returns self with the specified flags cleared.
Sourcepub fn insert(&mut self, other: SectionFlags)
pub fn insert(&mut self, other: SectionFlags)
Set the specified flags.
Sourcepub fn remove(&mut self, other: SectionFlags)
pub fn remove(&mut self, other: SectionFlags)
Clear the specified flags.
Source§impl SectionFlags
impl SectionFlags
pub const NAMES: &'static FlagNames<SectionFlags>
Trait Implementations§
Source§impl BitAnd for SectionFlags
impl BitAnd for SectionFlags
Source§type Output = SectionFlags
type Output = SectionFlags
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: SectionFlags) -> SectionFlags
fn bitand(self, rhs: SectionFlags) -> SectionFlags
Performs the
& operation. Read moreSource§impl BitAndAssign for SectionFlags
impl BitAndAssign for SectionFlags
Source§fn bitand_assign(&mut self, rhs: SectionFlags)
fn bitand_assign(&mut self, rhs: SectionFlags)
Performs the
&= operation. Read moreSource§impl BitOr for SectionFlags
impl BitOr for SectionFlags
Source§type Output = SectionFlags
type Output = SectionFlags
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: SectionFlags) -> SectionFlags
fn bitor(self, rhs: SectionFlags) -> SectionFlags
Performs the
| operation. Read moreSource§impl BitOr<SectionFlags> for SectionType
impl BitOr<SectionFlags> for SectionType
Source§type Output = SectionFlags
type Output = SectionFlags
The resulting type after applying the
| operator.Source§fn bitor(self, attrs: SectionFlags) -> SectionFlags
fn bitor(self, attrs: SectionFlags) -> SectionFlags
Performs the
| operation. Read moreSource§impl BitOrAssign for SectionFlags
impl BitOrAssign for SectionFlags
Source§fn bitor_assign(&mut self, rhs: SectionFlags)
fn bitor_assign(&mut self, rhs: SectionFlags)
Performs the
|= operation. Read moreSource§impl BitXor for SectionFlags
impl BitXor for SectionFlags
Source§type Output = SectionFlags
type Output = SectionFlags
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: SectionFlags) -> SectionFlags
fn bitxor(self, rhs: SectionFlags) -> SectionFlags
Performs the
^ operation. Read moreSource§impl BitXorAssign for SectionFlags
impl BitXorAssign for SectionFlags
Source§fn bitxor_assign(&mut self, rhs: SectionFlags)
fn bitxor_assign(&mut self, rhs: SectionFlags)
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SectionFlags
Source§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
impl Eq for SectionFlags
Source§impl From<SectionFlags> for SectionType
impl From<SectionFlags> for SectionType
Source§fn from(flags: SectionFlags) -> Self
fn from(flags: SectionFlags) -> Self
Converts to this type from the input type.
Source§impl From<SectionType> for SectionFlags
impl From<SectionType> for SectionFlags
Source§fn from(typ: SectionType) -> Self
fn from(typ: SectionType) -> Self
Converts to this type from the input type.
Source§impl Hash for SectionFlags
impl Hash for SectionFlags
Source§impl LowerHex for SectionFlags
impl LowerHex 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 (const: unstable) · 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 StructuralPartialEq for SectionFlags
Source§impl UpperHex for SectionFlags
impl UpperHex 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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.