pub struct VisibilityBoundary { /* private fields */ }Expand description
A visibility boundary: a governed module must not declare any bare-pub items —
a declared-visibility hygiene rule for an internal / impl-detail layer. The rule is
syntactic (the pub keyword on the module’s own direct items), not crate-
reachability: pub(crate)/pub(super)/pub(in …)/private are allowed, and attribute-
derived public surface (#[macro_export], #[no_mangle]) is out of scope (the deferred
attribute capability’s domain). Declared in Rust and composed with the other dimensions
at the gate.
Implementations§
Source§impl VisibilityBoundary
impl VisibilityBoundary
Sourcepub fn in_crate(package: &str) -> VisibilityCrateDraft
pub fn in_crate(package: &str) -> VisibilityCrateDraft
Begin a visibility boundary in the crate named package.
Sourcepub fn crate_package(&self) -> &str
pub fn crate_package(&self) -> &str
The crate this boundary governs.
Sourcepub fn reason(&self) -> &str
pub fn reason(&self) -> &str
The human-readable reason recorded with the boundary (the repair hint).
Sourcepub fn with_anchor(self, anchor: &str) -> Self
pub fn with_anchor(self, anchor: &str) -> Self
Attach a durable governance anchor (e.g. "ADR-014") — a stable pointer into the
project’s governance, distinct from the free-text reason. Optional; a boundary with
none projects and reacts exactly as before.
Sourcepub fn anchor(&self) -> Option<&str>
pub fn anchor(&self) -> Option<&str>
The durable governance anchor recorded with the boundary, if any.
Sourcepub fn ceiling(&self) -> VisibilityCeiling
pub fn ceiling(&self) -> VisibilityCeiling
The boundary’s maximum-visibility ceiling.
Trait Implementations§
Source§impl Clone for VisibilityBoundary
impl Clone for VisibilityBoundary
Source§fn clone(&self) -> VisibilityBoundary
fn clone(&self) -> VisibilityBoundary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more