Primitive type FunctionDefinition
Implementations
impl FunctionDefinition
pub comptime fn add_attribute<let N: u32>(self, attribute: str<N>)
pub comptime fn as_typed_expr(self) -> TypedExpr
pub comptime fn body(self) -> Expr
pub comptime fn has_named_attribute<let N: u32>(self, name: str<N>) -> bool
pub comptime fn is_unconstrained(self) -> bool
pub comptime fn module(self) -> Module
pub comptime fn name(self) -> Quoted
pub comptime fn parameters(self) -> [(Quoted, Type)]
pub comptime fn return_type(self) -> Type
pub comptime fn set_body(self, body: Expr)
pub comptime fn set_parameters(self, parameters: [(Quoted, Type)])
pub comptime fn set_return_type(self, return_type: Type)
pub comptime fn set_return_public(self, public: bool)
pub comptime fn set_unconstrained(self, value: bool)
pub comptime fn visibility(self) -> Quoted
Trait implementations
impl Eq for FunctionDefinition
pub comptime fn eq(self, other: Self) -> bool
impl Hash for FunctionDefinition
pub comptime fn hash<H>(self, state: &mut H)
where
H: Hasher