Struct AssemblyRaw
pub struct AssemblyRaw {
pub rid: u32,
pub token: Token,
pub offset: usize,
pub hash_alg_id: u32,
pub major_version: u32,
pub minor_version: u32,
pub build_number: u32,
pub revision_number: u32,
pub flags: u32,
pub public_key: u32,
pub name: u32,
pub culture: u32,
}Expand description
Represents a .NET CIL binary (assembly), TableId = 0x20
Fields§
§rid: u32RowID
token: TokenToken
offset: usizeOffset
hash_alg_id: u32a 4-byte constant of type AssemblyHashAlgorithm, §II.23.1.1
major_version: u32a 2-byte value specifying the Major version number
minor_version: u32a 2-byte value specifying the Minor version number
build_number: u32a 2-byte value specifying the Build number
revision_number: u32a 2-byte value specifying the Revision number
flags: u32a 4-byte bitmask of type AssemblyFlags, §II.23.1.2
public_key: u32an index into the Blob heap
name: u32an index into the String heap
culture: u32an index into the String heap
Implementations§
§impl AssemblyRaw
impl AssemblyRaw
pub fn to_owned(
&self,
strings: &Strings<'_>,
blobs: &Blob<'_>,
) -> Result<AssemblyRc>
pub fn to_owned( &self, strings: &Strings<'_>, blobs: &Blob<'_>, ) -> Result<AssemblyRc>
pub fn apply(&self) -> Result<()>
pub fn apply(&self) -> Result<()>
Apply an AssemblyRaw entry to update related metadata structures.
Assembly entries are self-contained and represent the current assembly metadata. They don’t require cross-table updates during the dual variant resolution phase.
§Errors
Always returns Ok(()) as Assembly entries don’t modify other tables.
Trait Implementations§
§impl Clone for AssemblyRaw
impl Clone for AssemblyRaw
§fn clone(&self) -> AssemblyRaw
fn clone(&self) -> AssemblyRaw
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 more§impl Debug for AssemblyRaw
impl Debug for AssemblyRaw
§impl<'a> RowDefinition<'a> for AssemblyRaw
impl<'a> RowDefinition<'a> for AssemblyRaw
Auto Trait Implementations§
impl Freeze for AssemblyRaw
impl RefUnwindSafe for AssemblyRaw
impl Send for AssemblyRaw
impl Sync for AssemblyRaw
impl Unpin for AssemblyRaw
impl UnwindSafe for AssemblyRaw
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<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>
Converts
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>
Converts
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 more