Struct AssemblyFlags
pub struct AssemblyFlags(/* private fields */);Expand description
Assembly flags bit field
Defines assembly-level attributes that control loading behavior, security requirements, and compatibility settings. These flags are stored in the Assembly table’s Flags field and can be combined using bitwise OR operations.
§Reference
- ECMA-335 II.23.1.2 -
AssemblyFlagsenumeration
Implementations§
§impl AssemblyFlags
impl AssemblyFlags
pub const ZERO: Self
pub const ZERO: Self
The zero (empty) value with no flags set.
§impl AssemblyFlags
impl AssemblyFlags
pub const PUBLIC_KEY: Self
pub const PUBLIC_KEY: Self
The assembly reference holds the full (unhashed) public key
When set, the PublicKey field contains the complete public key.
When clear, the PublicKey field contains only the public key token (last 8 bytes of hash).
pub const RETARGETABLE: Self
pub const RETARGETABLE: Self
The implementation of this assembly used at runtime is not expected to match the version seen at compile time
Allows the runtime to substitute a different version of this assembly if available. Commonly used for platform assemblies that may have runtime-specific implementations.
pub const PA_MASK: Self
pub const PA_MASK: Self
Processor architecture mask (bits 4-6).
pub const PA_MSIL: Self
pub const PA_MSIL: Self
MSIL (architecture-neutral) processor architecture.
pub const PA_X86: Self
pub const PA_X86: Self
x86 (32-bit Intel) processor architecture.
pub const PA_IA64: Self
pub const PA_IA64: Self
Reserved (IA-64) processor architecture.
pub const PA_AMD64: Self
pub const PA_AMD64: Self
AMD64 (x86-64) processor architecture.
pub const PA_ARM: Self
pub const PA_ARM: Self
ARM processor architecture.
pub const PA_ARM64: Self
pub const PA_ARM64: Self
ARM64 processor architecture.
pub const PA_NO_PLATFORM: Self
pub const PA_NO_PLATFORM: Self
No platform specified flag (bit 7).
pub const CONTENT_TYPE_MASK: Self
pub const CONTENT_TYPE_MASK: Self
Content type mask (bits 9-11).
pub const CONTENT_TYPE_WINDOWS_RUNTIME: Self
pub const CONTENT_TYPE_WINDOWS_RUNTIME: Self
Windows Runtime assembly content type.
pub const DISABLE_JIT_COMPILE_OPTIMIZER: Self
pub const DISABLE_JIT_COMPILE_OPTIMIZER: Self
Reserved (a conforming implementation of the CLI may ignore this setting on read)
Legacy flag for JIT compiler optimization control. Modern runtimes typically ignore this setting.
pub const ENABLE_JIT_COMPILE_TRACKING: Self
pub const ENABLE_JIT_COMPILE_TRACKING: Self
Reserved (a conforming implementation of the CLI may ignore this setting on read)
Legacy flag for JIT compiler tracking control. Modern runtimes typically ignore this setting.
pub const fn processor_architecture(self) -> Self
pub const fn processor_architecture(self) -> Self
Extract the processor architecture bits from the flags.
pub const fn content_type(self) -> Self
pub const fn content_type(self) -> Self
Extract the content type bits from the flags.
pub fn processor_architecture_keyword(self) -> &'static str
pub fn processor_architecture_keyword(self) -> &'static str
Return the ILAsm keyword for the processor architecture.
Trait Implementations§
§impl BitAnd for AssemblyFlags
impl BitAnd for AssemblyFlags
§impl BitAndAssign for AssemblyFlags
impl BitAndAssign for AssemblyFlags
§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&= operation. Read more§impl BitOr for AssemblyFlags
impl BitOr for AssemblyFlags
§impl BitOrAssign for AssemblyFlags
impl BitOrAssign for AssemblyFlags
§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read more§impl Clone for AssemblyFlags
impl Clone for AssemblyFlags
§fn clone(&self) -> AssemblyFlags
fn clone(&self) -> AssemblyFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AssemblyFlags
§impl Debug for AssemblyFlags
impl Debug for AssemblyFlags
§impl Deref for AssemblyFlags
impl Deref for AssemblyFlags
§impl Display for AssemblyFlags
impl Display for AssemblyFlags
impl Eq for AssemblyFlags
§impl Hash for AssemblyFlags
impl Hash for AssemblyFlags
§impl LowerHex for AssemblyFlags
impl LowerHex for AssemblyFlags
§impl Not for AssemblyFlags
impl Not for AssemblyFlags
§impl PartialEq for AssemblyFlags
impl PartialEq for AssemblyFlags
§impl PartialEq<u32> for AssemblyFlags
impl PartialEq<u32> for AssemblyFlags
§impl PartialOrd<u32> for AssemblyFlags
impl PartialOrd<u32> for AssemblyFlags
impl StructuralPartialEq for AssemblyFlags
Auto Trait Implementations§
impl Freeze for AssemblyFlags
impl RefUnwindSafe for AssemblyFlags
impl Send for AssemblyFlags
impl Sync for AssemblyFlags
impl Unpin for AssemblyFlags
impl UnsafeUnpin for AssemblyFlags
impl UnwindSafe for AssemblyFlags
Blanket Implementations§
impl<T> Boilerplate for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for T
impl<T> Downcast for T
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§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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more