pub struct HirFunction {
pub span: Span,
pub name: String,
pub return_type: SemanticType,
pub parameters: Vec<HirParameter>,
pub locals: Vec<HirLocal>,
pub body: Option<HirBlock>,
pub is_builtin: bool,
}Expand description
One lowered function.
Fields§
§span: SpanSource span.
name: StringFunction name.
return_type: SemanticTypeReturn type.
parameters: Vec<HirParameter>Parameters in declaration order.
locals: Vec<HirLocal>All local slots, including parameters first.
body: Option<HirBlock>Optional body for declarations vs implementations.
is_builtin: boolWhether the function came from the builtin langspec.
Trait Implementations§
Source§impl Clone for HirFunction
impl Clone for HirFunction
Source§fn clone(&self) -> HirFunction
fn clone(&self) -> HirFunction
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 HirFunction
impl Debug for HirFunction
Source§impl<'de> Deserialize<'de> for HirFunction
impl<'de> Deserialize<'de> for HirFunction
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
Source§impl PartialEq for HirFunction
impl PartialEq for HirFunction
Source§impl Serialize for HirFunction
impl Serialize for HirFunction
impl StructuralPartialEq for HirFunction
Auto Trait Implementations§
impl Freeze for HirFunction
impl RefUnwindSafe for HirFunction
impl Send for HirFunction
impl Sync for HirFunction
impl Unpin for HirFunction
impl UnsafeUnpin for HirFunction
impl UnwindSafe for HirFunction
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