For the complete documentation index, see llms.txt.
aztec-nr - std::meta::item_visibility

Struct ItemVisibility

pub comptime struct ItemVisibility
{ /* private fields */ }

The visibility of an item in a Noir program.

Implementations

impl ItemVisibility

pub comptime fn is_private(self) -> bool

Returns true if the item is private.

pub comptime fn is_public(self) -> bool

Returns true if the item is public outside its crate.

pub comptime fn is_public_crate(self) -> bool

Returns true if the item is public only within its crate.

pub comptime fn as_quoted(self) -> Quoted

Returns this visibility as quoted syntax for use in generated code.