pub struct Function {
pub name: Option<Sym>,
pub ty: FunctionType,
pub num_instrs: usize,
pub blocks: Vec<BlockId>,
pub decl: Option<DeclId>,
pub generic_params: Vec<GenericParamId>,
pub instr_namespace: InstrNamespace,
pub is_comptime: bool,
}
Fields
name: Option<Sym>
ty: FunctionType
num_instrs: usize
blocks: Vec<BlockId>
Index 0 is defined to be the entry block
decl: Option<DeclId>
generic_params: Vec<GenericParamId>
instr_namespace: InstrNamespace
is_comptime: bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more