pub struct DLLCharacteristics { /* private fields */ }Expand description
A series of bitflags representing DLL characteristics.
Implementations§
Source§impl DLLCharacteristics
impl DLLCharacteristics
pub const RESERVED1: DLLCharacteristics
pub const RESERVED2: DLLCharacteristics
pub const RESERVED4: DLLCharacteristics
pub const RESERVED8: DLLCharacteristics
pub const HIGH_ENTROPY_VA: DLLCharacteristics
pub const DYNAMIC_BASE: DLLCharacteristics
pub const FORCE_INTEGRITY: DLLCharacteristics
pub const NX_COMPAT: DLLCharacteristics
pub const NO_ISOLATION: DLLCharacteristics
pub const NO_SEH: DLLCharacteristics
pub const NO_BIND: DLLCharacteristics
pub const APPCONTAINER: DLLCharacteristics
pub const WDM_DRIVER: DLLCharacteristics
pub const GUARD_CF: DLLCharacteristics
pub const TERMINAL_SERVER_AWARE: DLLCharacteristics
Sourcepub const fn empty() -> DLLCharacteristics
pub const fn empty() -> DLLCharacteristics
Returns an empty set of flags
Sourcepub const fn all() -> DLLCharacteristics
pub const fn all() -> DLLCharacteristics
Returns the set containing all flags.
Sourcepub fn from_bits(bits: u16) -> Option<DLLCharacteristics>
pub fn from_bits(bits: u16) -> Option<DLLCharacteristics>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub const fn from_bits_truncate(bits: u16) -> DLLCharacteristics
pub const fn from_bits_truncate(bits: u16) -> DLLCharacteristics
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub const unsafe fn from_bits_unchecked(bits: u16) -> DLLCharacteristics
pub const unsafe fn from_bits_unchecked(bits: u16) -> DLLCharacteristics
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
Sourcepub const fn intersects(&self, other: DLLCharacteristics) -> bool
pub const fn intersects(&self, other: DLLCharacteristics) -> bool
Returns true if there are flags common to both self and other.
Sourcepub const fn contains(&self, other: DLLCharacteristics) -> bool
pub const fn contains(&self, other: DLLCharacteristics) -> bool
Returns true all of the flags in other are contained within self.
Sourcepub fn insert(&mut self, other: DLLCharacteristics)
pub fn insert(&mut self, other: DLLCharacteristics)
Inserts the specified flags in-place.
Sourcepub fn remove(&mut self, other: DLLCharacteristics)
pub fn remove(&mut self, other: DLLCharacteristics)
Removes the specified flags in-place.
Sourcepub fn toggle(&mut self, other: DLLCharacteristics)
pub fn toggle(&mut self, other: DLLCharacteristics)
Toggles the specified flags in-place.
Sourcepub fn set(&mut self, other: DLLCharacteristics, value: bool)
pub fn set(&mut self, other: DLLCharacteristics, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations§
Source§impl Binary for DLLCharacteristics
impl Binary for DLLCharacteristics
Source§impl BitAnd for DLLCharacteristics
impl BitAnd for DLLCharacteristics
Source§fn bitand(self, other: DLLCharacteristics) -> DLLCharacteristics
fn bitand(self, other: DLLCharacteristics) -> DLLCharacteristics
Returns the intersection between the two sets of flags.
Source§type Output = DLLCharacteristics
type Output = DLLCharacteristics
& operator.Source§impl BitAndAssign for DLLCharacteristics
impl BitAndAssign for DLLCharacteristics
Source§fn bitand_assign(&mut self, other: DLLCharacteristics)
fn bitand_assign(&mut self, other: DLLCharacteristics)
Disables all flags disabled in the set.
Source§impl BitOr for DLLCharacteristics
impl BitOr for DLLCharacteristics
Source§fn bitor(self, other: DLLCharacteristics) -> DLLCharacteristics
fn bitor(self, other: DLLCharacteristics) -> DLLCharacteristics
Returns the union of the two sets of flags.
Source§type Output = DLLCharacteristics
type Output = DLLCharacteristics
| operator.Source§impl BitOrAssign for DLLCharacteristics
impl BitOrAssign for DLLCharacteristics
Source§fn bitor_assign(&mut self, other: DLLCharacteristics)
fn bitor_assign(&mut self, other: DLLCharacteristics)
Adds the set of flags.
Source§impl BitXor for DLLCharacteristics
impl BitXor for DLLCharacteristics
Source§fn bitxor(self, other: DLLCharacteristics) -> DLLCharacteristics
fn bitxor(self, other: DLLCharacteristics) -> DLLCharacteristics
Returns the left flags, but with all the right flags toggled.
Source§type Output = DLLCharacteristics
type Output = DLLCharacteristics
^ operator.Source§impl BitXorAssign for DLLCharacteristics
impl BitXorAssign for DLLCharacteristics
Source§fn bitxor_assign(&mut self, other: DLLCharacteristics)
fn bitxor_assign(&mut self, other: DLLCharacteristics)
Toggles the set of flags.
Source§impl Clone for DLLCharacteristics
impl Clone for DLLCharacteristics
Source§fn clone(&self) -> DLLCharacteristics
fn clone(&self) -> DLLCharacteristics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DLLCharacteristics
impl Debug for DLLCharacteristics
Source§impl Extend<DLLCharacteristics> for DLLCharacteristics
impl Extend<DLLCharacteristics> for DLLCharacteristics
Source§fn extend<T: IntoIterator<Item = DLLCharacteristics>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = DLLCharacteristics>>(&mut self, iterator: T)
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one)Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one)Source§impl FromIterator<DLLCharacteristics> for DLLCharacteristics
impl FromIterator<DLLCharacteristics> for DLLCharacteristics
Source§fn from_iter<T: IntoIterator<Item = DLLCharacteristics>>(
iterator: T,
) -> DLLCharacteristics
fn from_iter<T: IntoIterator<Item = DLLCharacteristics>>( iterator: T, ) -> DLLCharacteristics
Source§impl Hash for DLLCharacteristics
impl Hash for DLLCharacteristics
Source§impl LowerHex for DLLCharacteristics
impl LowerHex for DLLCharacteristics
Source§impl Not for DLLCharacteristics
impl Not for DLLCharacteristics
Source§fn not(self) -> DLLCharacteristics
fn not(self) -> DLLCharacteristics
Returns the complement of this set of flags.
Source§type Output = DLLCharacteristics
type Output = DLLCharacteristics
! operator.Source§impl Octal for DLLCharacteristics
impl Octal for DLLCharacteristics
Source§impl Ord for DLLCharacteristics
impl Ord for DLLCharacteristics
Source§fn cmp(&self, other: &DLLCharacteristics) -> Ordering
fn cmp(&self, other: &DLLCharacteristics) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DLLCharacteristics
impl PartialEq for DLLCharacteristics
Source§impl PartialOrd for DLLCharacteristics
impl PartialOrd for DLLCharacteristics
Source§impl Sub for DLLCharacteristics
impl Sub for DLLCharacteristics
Source§fn sub(self, other: DLLCharacteristics) -> DLLCharacteristics
fn sub(self, other: DLLCharacteristics) -> DLLCharacteristics
Returns the set difference of the two sets of flags.
Source§type Output = DLLCharacteristics
type Output = DLLCharacteristics
- operator.Source§impl SubAssign for DLLCharacteristics
impl SubAssign for DLLCharacteristics
Source§fn sub_assign(&mut self, other: DLLCharacteristics)
fn sub_assign(&mut self, other: DLLCharacteristics)
Disables all flags enabled in the set.