Struct wast::component::CanonicalFunc
source · [−]pub struct CanonicalFunc<'a> {
pub span: Span,
pub id: Option<Id<'a>>,
pub name: Option<NameAnnotation<'a>>,
pub kind: CanonicalFuncKind<'a>,
}
Expand description
A WebAssembly canonical function to be inserted into a component.
This is a member of the canonical section.
Fields
span: Span
Where this func
was defined.
id: Option<Id<'a>>
An identifier that this function is resolved with (optionally) for name resolution.
name: Option<NameAnnotation<'a>>
An optional name for this function stored in the custom name
section.
kind: CanonicalFuncKind<'a>
What kind of function this is, be it a lowered or lifted function.
Trait Implementations
sourceimpl<'a> Debug for CanonicalFunc<'a>
impl<'a> Debug for CanonicalFunc<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for CanonicalFunc<'a>
impl<'a> Send for CanonicalFunc<'a>
impl<'a> Sync for CanonicalFunc<'a>
impl<'a> Unpin for CanonicalFunc<'a>
impl<'a> UnwindSafe for CanonicalFunc<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more