pub struct FfnSig {
pub params: Vec<Ty>,
pub ret: Option<Ty>,
pub variadic: bool,
}Expand description
A foreign function’s signature, τ̄ → τ.
Fields§
§params: Vec<Ty>Parameter types, in order.
ret: Option<Ty>Result type; None for a procedure.
variadic: boolTrailing ... (C only): extra arguments are untyped.
Trait Implementations§
impl Eq for FfnSig
impl StructuralPartialEq for FfnSig
Auto Trait Implementations§
impl Freeze for FfnSig
impl RefUnwindSafe for FfnSig
impl Send for FfnSig
impl Sync for FfnSig
impl Unpin for FfnSig
impl UnsafeUnpin for FfnSig
impl UnwindSafe for FfnSig
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.