pub struct RustFunctionSignature {
pub sig: Signature,
pub generic_params: Vec<GenericParam>,
pub is_async: bool,
pub monomorphize_types: Vec<String>,
}Expand description
A Rust function signature that will have a safe wrapper generated
Fields§
§sig: Signature§generic_params: Vec<GenericParam>Generic parameters (Phase 3: Generics support)
is_async: boolWhether this is an async function (Phase 3: Async support)
monomorphize_types: Vec<String>Monomorphization attribute types (e.g., #[monomorphize(i32, f64)])
Trait Implementations§
Source§impl Clone for RustFunctionSignature
impl Clone for RustFunctionSignature
Source§fn clone(&self) -> RustFunctionSignature
fn clone(&self) -> RustFunctionSignature
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 RustFunctionSignature
impl RefUnwindSafe for RustFunctionSignature
impl !Send for RustFunctionSignature
impl !Sync for RustFunctionSignature
impl Unpin for RustFunctionSignature
impl UnwindSafe for RustFunctionSignature
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