pub struct SourceFunction {
pub source_id: u64,
pub name: String,
pub params: Vec<SourceParam>,
pub declaration_start: u64,
pub declaration_line: u64,
pub body_start: u64,
pub body_end: u64,
pub returns: Vec<SourceLocal>,
pub locals: Vec<SourceLocal>,
pub has_modifiers: bool,
pub modifiers: Vec<String>,
pub placeholder: Option<u64>,
}Fields§
§source_id: u64§name: StringThe declared name; constructor, fallback, and receive for those, and the
modifier’s name for a modifier.
params: Vec<SourceParam>§declaration_start: u64§declaration_line: u64The one-based line the declaration begins on.
body_start: u64The offset of the body’s opening brace.
body_end: u64§returns: Vec<SourceLocal>The return parameters, named or not, in declaration order.
locals: Vec<SourceLocal>The local variables declared in the body, in declaration order.
has_modifiers: boolWhether the header invokes modifiers, which run inlined around the body and reserve stack slots of their own.
modifiers: Vec<String>The modifiers the header invokes, in the order they run.
placeholder: Option<u64>For a modifier, the offset of its _; placeholder, where the function body runs.
Trait Implementations§
Source§impl Clone for SourceFunction
impl Clone for SourceFunction
Source§fn clone(&self) -> SourceFunction
fn clone(&self) -> SourceFunction
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 Debug for SourceFunction
impl Debug for SourceFunction
Source§impl<'de> Deserialize<'de> for SourceFunction
impl<'de> Deserialize<'de> for SourceFunction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SourceFunction
Source§impl PartialEq for SourceFunction
impl PartialEq for SourceFunction
Source§impl Serialize for SourceFunction
impl Serialize for SourceFunction
impl StructuralPartialEq for SourceFunction
Auto Trait Implementations§
impl Freeze for SourceFunction
impl RefUnwindSafe for SourceFunction
impl Send for SourceFunction
impl Sync for SourceFunction
impl Unpin for SourceFunction
impl UnsafeUnpin for SourceFunction
impl UnwindSafe for SourceFunction
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