pub struct CallGenerator { /* private fields */ }Expand description
Function call generator with calling convention support
Implementations§
Source§impl CallGenerator
impl CallGenerator
Sourcepub fn new(convention: CallingConvention) -> Self
pub fn new(convention: CallingConvention) -> Self
Create a new call generator
Sourcepub fn generate_prologue(&self, stack_size: usize) -> String
pub fn generate_prologue(&self, stack_size: usize) -> String
Generate function prologue
Sourcepub fn generate_epilogue(&self) -> String
pub fn generate_epilogue(&self) -> String
Generate function epilogue
Sourcepub fn generate_call(&self, func_name: &str, args: &[String]) -> String
pub fn generate_call(&self, func_name: &str, args: &[String]) -> String
Generate function call
Auto Trait Implementations§
impl Freeze for CallGenerator
impl RefUnwindSafe for CallGenerator
impl Send for CallGenerator
impl Sync for CallGenerator
impl Unpin for CallGenerator
impl UnsafeUnpin for CallGenerator
impl UnwindSafe for CallGenerator
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> 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