pub struct RasAssembler { /* private fields */ }Expand description
Assembler: converts assembly text to object files
Implementations§
Source§impl RasAssembler
impl RasAssembler
Sourcepub fn new(
target_arch: TargetArchitecture,
target_os: TargetOperatingSystem,
) -> Result<Self, RasError>
pub fn new( target_arch: TargetArchitecture, target_os: TargetOperatingSystem, ) -> Result<Self, RasError>
Create a new assembler for the given target architecture and OS.
Sourcepub fn with_object_write_options(
target_arch: TargetArchitecture,
target_os: TargetOperatingSystem,
object_write_options: ObjectWriteOptions,
) -> Result<Self, RasError>
pub fn with_object_write_options( target_arch: TargetArchitecture, target_os: TargetOperatingSystem, object_write_options: ObjectWriteOptions, ) -> Result<Self, RasError>
Create a new assembler with custom object-file write options.
Sourcepub fn set_object_write_options(&mut self, opts: ObjectWriteOptions)
pub fn set_object_write_options(&mut self, opts: ObjectWriteOptions)
Replace the object-file write options used by subsequent assembly calls.
Auto Trait Implementations§
impl Freeze for RasAssembler
impl !RefUnwindSafe for RasAssembler
impl !Send for RasAssembler
impl !Sync for RasAssembler
impl Unpin for RasAssembler
impl UnsafeUnpin for RasAssembler
impl !UnwindSafe for RasAssembler
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