pub struct FunctionMeta {
pub name: String,
pub params: Vec<String>,
pub returns: Vec<String>,
pub raw_offset: usize,
}Expand description
Metadata for a compiled function, collected during bytecode generation.
Fields§
§name: String§params: Vec<String>§returns: Vec<String>§raw_offset: usizeBytecode offset before the init-marker prefix is inserted.
The final offset in the emitted binary is raw_offset + INIT_MARKER_LEN.
Trait Implementations§
Source§impl Clone for FunctionMeta
impl Clone for FunctionMeta
Source§fn clone(&self) -> FunctionMeta
fn clone(&self) -> FunctionMeta
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionMeta
impl Debug for FunctionMeta
Source§impl Hash for FunctionMeta
impl Hash for FunctionMeta
Source§impl PartialEq for FunctionMeta
impl PartialEq for FunctionMeta
impl Eq for FunctionMeta
impl StructuralPartialEq for FunctionMeta
Auto Trait Implementations§
impl Freeze for FunctionMeta
impl RefUnwindSafe for FunctionMeta
impl Send for FunctionMeta
impl Sync for FunctionMeta
impl Unpin for FunctionMeta
impl UnwindSafe for FunctionMeta
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,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more