pub struct FunctionDirective<Ty = Type> {
pub name: String,
pub params: Vec<(String, Ty)>,
pub ret: Vec<Ty>,
pub locals: u32,
}Expand description
.func @name(param: type, ...) -> ret, locals N.
Fields§
§name: StringThe function’s name, without @. It must match an @name: symbol in
.text.
params: Vec<(String, Ty)>Parameter names and types, in order.
ret: Vec<Ty>Return types: none (-> ... omitted), one (-> u64), or several
(-> (u64, bool)).
locals: u32Reserved local slots, including parameters.
Trait Implementations§
Source§impl<Ty: Clone> Clone for FunctionDirective<Ty>
impl<Ty: Clone> Clone for FunctionDirective<Ty>
Source§fn clone(&self) -> FunctionDirective<Ty>
fn clone(&self) -> FunctionDirective<Ty>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Ty: Debug> Debug for FunctionDirective<Ty>
impl<Ty: Debug> Debug for FunctionDirective<Ty>
Source§impl<Ty: PartialEq> PartialEq for FunctionDirective<Ty>
impl<Ty: PartialEq> PartialEq for FunctionDirective<Ty>
impl<Ty: PartialEq> StructuralPartialEq for FunctionDirective<Ty>
Auto Trait Implementations§
impl<Ty> Freeze for FunctionDirective<Ty>
impl<Ty> RefUnwindSafe for FunctionDirective<Ty>where
Ty: RefUnwindSafe,
impl<Ty> Send for FunctionDirective<Ty>where
Ty: Send,
impl<Ty> Sync for FunctionDirective<Ty>where
Ty: Sync,
impl<Ty> Unpin for FunctionDirective<Ty>where
Ty: Unpin,
impl<Ty> UnsafeUnpin for FunctionDirective<Ty>
impl<Ty> UnwindSafe for FunctionDirective<Ty>where
Ty: UnwindSafe,
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,
§impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<'src, T> IntoMaybe<'src, T> for Twhere
T: 'src,
impl<T> OrderedSeq<'_, T> for Twhere
T: Clone,
§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
§type Iter<'a> = Once<&'a T>
where
T: 'a
type Iter<'a> = Once<&'a T> where T: 'a
An iterator over the items within this container, by reference.
§fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
fn contains(&self, val: &T) -> boolwhere
T: PartialEq,
Check whether an item is contained within this sequence.
§fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
fn to_maybe_ref<'b>(item: <T as Seq<'p, T>>::Item<'b>) -> Maybe<T, &'p T>where
'p: 'b,
Convert an item of the sequence into a [
MaybeRef].