pub struct ClrBuilder { /* private fields */ }Expand description
CLR 程序构建器,简化 ClrProgram 的构建过程
Implementations§
Source§impl ClrBuilder
impl ClrBuilder
pub fn new(name: String) -> Self
pub fn add_external_assembly(&mut self, name: String)
pub fn begin_class(&mut self, name: String, namespace: Option<String>)
pub fn begin_method(&mut self, name: String, return_type: ClrTypeReference)
pub fn emit( &mut self, opcode: ClrOpcode, operand: Option<ClrInstructionOperand>, )
pub fn finish(self) -> ClrProgram
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ClrBuilder
impl RefUnwindSafe for ClrBuilder
impl Send for ClrBuilder
impl Sync for ClrBuilder
impl Unpin for ClrBuilder
impl UnsafeUnpin for ClrBuilder
impl UnwindSafe for ClrBuilder
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