pub enum FuncKind<'a> {
Import {
module: &'a str,
name: &'a str,
},
Inline {
instrs: Instructions<'a>,
},
}Expand description
Different flavors of functions that can be defined.
Variants§
Import
An sugared import declaration.
Inline
An inline function definition which contains actual instructions
Fields
§
instrs: Instructions<'a>Auto Trait Implementations§
impl<'a> Freeze for FuncKind<'a>
impl<'a> RefUnwindSafe for FuncKind<'a>
impl<'a> Send for FuncKind<'a>
impl<'a> Sync for FuncKind<'a>
impl<'a> Unpin for FuncKind<'a>
impl<'a> UnwindSafe for FuncKind<'a>
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