pub struct HirFunction {Show 14 fields
pub loc: Option<SourceLocation>,
pub id: Option<String>,
pub name_hint: Option<String>,
pub fn_type: ReactFunctionType,
pub params: Vec<ParamPattern>,
pub return_type_annotation: Option<String>,
pub returns: Place,
pub context: Vec<Place>,
pub body: HIR,
pub instructions: Vec<Instruction>,
pub generator: bool,
pub is_async: bool,
pub directives: Vec<String>,
pub aliasing_effects: Option<Vec<AliasingEffect>>,
}Expand description
A function lowered to HIR form
Fields§
§loc: Option<SourceLocation>§id: Option<String>§name_hint: Option<String>§fn_type: ReactFunctionType§params: Vec<ParamPattern>§return_type_annotation: Option<String>§returns: Place§context: Vec<Place>§body: HIR§instructions: Vec<Instruction>§generator: bool§is_async: bool§directives: Vec<String>§aliasing_effects: Option<Vec<AliasingEffect>>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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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