pub struct Function {
pub name: String,
pub kind: FunctionKind,
pub params: Params,
pub results: Results,
pub docs: Docs,
pub stability: Stability,
}
Fields§
§name: String
§kind: FunctionKind
§params: Params
§results: Results
§docs: Docs
§stability: Stability
Stability attribute for this function.
Implementations§
Source§impl Function
impl Function
pub fn item_name(&self) -> &str
Sourcepub fn parameter_and_result_types(&self) -> impl Iterator<Item = Type> + '_
pub fn parameter_and_result_types(&self) -> impl Iterator<Item = Type> + '_
Returns an iterator over the types used in parameters and results.
Note that this iterator is not transitive, it only iterates over the direct references to types that this function has.
Sourcepub fn standard32_core_export_name<'a>(
&'a self,
interface: Option<&str>,
) -> Cow<'a, str>
pub fn standard32_core_export_name<'a>( &'a self, interface: Option<&str>, ) -> Cow<'a, str>
Gets the core export name for this function.
pub fn legacy_core_export_name<'a>( &'a self, interface: Option<&str>, ) -> Cow<'a, str>
Trait Implementations§
impl Eq for Function
impl StructuralPartialEq for Function
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.