pub struct Signature {
pub call_conv: CallConv,
pub params: Vec<CraneliftType>,
pub returns: Vec<CraneliftType>,
}Expand description
Function signature.
Fields§
§call_conv: CallConvCalling convention
params: Vec<CraneliftType>Parameter types
returns: Vec<CraneliftType>Return types (Cranelift supports multiple returns)
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn new(
call_conv: CallConv,
params: Vec<CraneliftType>,
returns: Vec<CraneliftType>,
) -> Self
pub fn new( call_conv: CallConv, params: Vec<CraneliftType>, returns: Vec<CraneliftType>, ) -> Self
Create a new signature.
Sourcepub fn c_like(params: Vec<CraneliftType>, returns: Vec<CraneliftType>) -> Self
pub fn c_like(params: Vec<CraneliftType>, returns: Vec<CraneliftType>) -> Self
Create a simple C-like signature.
Trait Implementations§
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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