pub struct FunctionDecl<Type> {
pub name: u32,
pub signature: Signature<Type>,
pub local_count: u32,
pub file: u32,
}Expand description
A function declaration, assembled from a .func header directive.
It carries everything about a function except where it is: the executable
range comes from the @name: symbol definition with the same name in the
section’s .text.
Fields§
§name: u32§signature: Signature<Type>§local_count: u32Reserved local slots, including parameters, for this function.
file: u32Trait Implementations§
Source§impl<Type: Clone> Clone for FunctionDecl<Type>
impl<Type: Clone> Clone for FunctionDecl<Type>
Source§fn clone(&self) -> FunctionDecl<Type>
fn clone(&self) -> FunctionDecl<Type>
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<Type: Debug> Debug for FunctionDecl<Type>
impl<Type: Debug> Debug for FunctionDecl<Type>
Source§impl<Type: PartialEq> PartialEq for FunctionDecl<Type>
impl<Type: PartialEq> PartialEq for FunctionDecl<Type>
impl<Type: PartialEq> StructuralPartialEq for FunctionDecl<Type>
Auto Trait Implementations§
impl<Type> Freeze for FunctionDecl<Type>
impl<Type> RefUnwindSafe for FunctionDecl<Type>where
Type: RefUnwindSafe,
impl<Type> Send for FunctionDecl<Type>where
Type: Send,
impl<Type> Sync for FunctionDecl<Type>where
Type: Sync,
impl<Type> Unpin for FunctionDecl<Type>where
Type: Unpin,
impl<Type> UnsafeUnpin for FunctionDecl<Type>
impl<Type> UnwindSafe for FunctionDecl<Type>where
Type: 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].