pub type PolyFnSig = Binder<FnSig>;
Aliased Type§
struct PolyFnSig {
pub value: FnSig,
pub bound_vars: Vec<BoundVariableKind>,
}
Fields§
§value: FnSig
§bound_vars: Vec<BoundVariableKind>
Implementations§
Source§impl PolyFnSig
impl PolyFnSig
Sourcepub fn fn_ptr_abi(self) -> Result<FnAbi, Error>
pub fn fn_ptr_abi(self) -> Result<FnAbi, Error>
Compute a FnAbi
suitable for indirect calls, i.e. to fn
pointers.
NB: this doesn’t handle virtual calls - those should use Instance::fn_abi
instead, where the instance is an InstanceKind::Virtual
.
Source§impl<T> Binder<T>
impl<T> Binder<T>
Sourcepub fn bind_with_vars(value: T, bound_vars: Vec<BoundVariableKind>) -> Self
pub fn bind_with_vars(value: T, bound_vars: Vec<BoundVariableKind>) -> Self
Create a new binder with the given bound vars.
pub fn skip_binder(self) -> T
pub fn map_bound_ref<F, U>(&self, f: F) -> Binder<U>
pub fn map_bound<F, U>(self, f: F) -> Binder<U>where
F: FnOnce(T) -> U,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes