pub struct ClrProgram {
pub name: String,
pub version: ClrVersion,
pub access_flags: ClrAccessFlags,
pub external_assemblies: Vec<ClrExternalAssembly>,
pub module: Option<ClrModule>,
pub types: Vec<ClrType>,
pub global_methods: Vec<ClrMethod>,
pub global_fields: Vec<ClrField>,
pub attributes: Vec<ClrAttribute>,
pub constant_pool: ClrConstantPool,
pub source_file: Option<String>,
}Expand description
CLR assembly structure representing a complete .NET assembly.
Fields§
§name: StringThe name of the assembly.
version: ClrVersionThe version of the assembly.
access_flags: ClrAccessFlagsAccess flags for the assembly.
external_assemblies: Vec<ClrExternalAssembly>External assembly references.
module: Option<ClrModule>Module definition.
types: Vec<ClrType>Types defined in the assembly.
global_methods: Vec<ClrMethod>Global methods in the assembly.
global_fields: Vec<ClrField>Global fields in the assembly.
attributes: Vec<ClrAttribute>Assembly-level attributes.
constant_pool: ClrConstantPoolConstant pool for string and type references.
source_file: Option<String>Source file path.
Implementations§
Source§impl ClrProgram
impl ClrProgram
Sourcepub fn add_global_method(&mut self, method: ClrMethod)
pub fn add_global_method(&mut self, method: ClrMethod)
Adds a global method to the assembly.
Sourcepub fn add_global_field(&mut self, field: ClrField)
pub fn add_global_field(&mut self, field: ClrField)
Adds a global field to the assembly.
Sourcepub fn add_external_assembly(&mut self, assembly: ClrExternalAssembly)
pub fn add_external_assembly(&mut self, assembly: ClrExternalAssembly)
Adds an external assembly reference.
Trait Implementations§
Source§impl Clone for ClrProgram
impl Clone for ClrProgram
Source§fn clone(&self) -> ClrProgram
fn clone(&self) -> ClrProgram
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 moreAuto Trait Implementations§
impl Freeze for ClrProgram
impl RefUnwindSafe for ClrProgram
impl Send for ClrProgram
impl Sync for ClrProgram
impl Unpin for ClrProgram
impl UnsafeUnpin for ClrProgram
impl UnwindSafe for ClrProgram
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