pub struct ParsedFunction<I, Ty> {
pub name: Ident,
pub params: Vec<Param<Ty>>,
pub return_types: Vec<Ty>,
pub body: Vec<I>,
pub labels: Vec<ParsedLabel>,
}Fields§
§name: IdentFunction name with the leading @ stripped (@main → "main").
params: Vec<Param<Ty>>Function parameters parsed from name: type declarations.
return_types: Vec<Ty>Return types parsed with the consumer-provided Ty syntax.
body: Vec<I>§labels: Vec<ParsedLabel>Labels and their positions in the executable body, for loader preparation.
Trait Implementations§
Source§impl<I: Clone, Ty: Clone> Clone for ParsedFunction<I, Ty>
impl<I: Clone, Ty: Clone> Clone for ParsedFunction<I, Ty>
Source§fn clone(&self) -> ParsedFunction<I, Ty>
fn clone(&self) -> ParsedFunction<I, 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<'src, I, Ty> Parse<'src> for ParsedFunction<I, Ty>
impl<'src, I, Ty> Parse<'src> for ParsedFunction<I, Ty>
impl<I: PartialEq, Ty: PartialEq> StructuralPartialEq for ParsedFunction<I, Ty>
Auto Trait Implementations§
impl<I, Ty> Freeze for ParsedFunction<I, Ty>
impl<I, Ty> RefUnwindSafe for ParsedFunction<I, Ty>where
Ty: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, Ty> Send for ParsedFunction<I, Ty>
impl<I, Ty> Sync for ParsedFunction<I, Ty>
impl<I, Ty> Unpin for ParsedFunction<I, Ty>
impl<I, Ty> UnsafeUnpin for ParsedFunction<I, Ty>
impl<I, Ty> UnwindSafe for ParsedFunction<I, Ty>where
Ty: UnwindSafe,
I: 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].