> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function internal

Module: `noir_aztec::macros::functions`

```rust
pub comptime fn internal(f: FunctionDefinition, f_type: CtString)
```

An internal function is only callable from inside the contract.

[`internal`](/aztec-nr-api/v6.0.0/noir_aztec/macros/functions/fn.internal.md) functions are the Aztec equivalent of a Solidity `internal` function, though their behavior differs slightly for public, private and utiliy functions.

Note that these are different from [`only_self`](/aztec-nr-api/v6.0.0/noir_aztec/macros/functions/fn.only_self.md) in that those are [`external`](/aztec-nr-api/v6.0.0/noir_aztec/macros/functions/fn.external.md) and so are externally called (via contract calls).
