pub struct ForbiddenMarkerBoundary { /* private fields */ }Expand description
A forbidden-marker boundary: types defined in a module subtree must not acquire a
forbidden trait — by #[derive(T)] or a hand-written impl T for <a subtree type>.
Declared in Rust and composed at the gate. The complement to exposure, impl-locality, and
visibility; it delivers the “this layer is not T-able” intent.
Implementations§
Source§impl ForbiddenMarkerBoundary
impl ForbiddenMarkerBoundary
Sourcepub fn in_crate(package: &str) -> ForbiddenMarkerCrateDraft
pub fn in_crate(package: &str) -> ForbiddenMarkerCrateDraft
Begin a forbidden-marker 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 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.
Trait Implementations§
Source§impl Clone for ForbiddenMarkerBoundary
impl Clone for ForbiddenMarkerBoundary
Source§fn clone(&self) -> ForbiddenMarkerBoundary
fn clone(&self) -> ForbiddenMarkerBoundary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ForbiddenMarkerBoundary
impl Debug for ForbiddenMarkerBoundary
impl Eq for ForbiddenMarkerBoundary
Source§impl PartialEq for ForbiddenMarkerBoundary
impl PartialEq for ForbiddenMarkerBoundary
impl StructuralPartialEq for ForbiddenMarkerBoundary
Auto Trait Implementations§
impl Freeze for ForbiddenMarkerBoundary
impl RefUnwindSafe for ForbiddenMarkerBoundary
impl Send for ForbiddenMarkerBoundary
impl Sync for ForbiddenMarkerBoundary
impl Unpin for ForbiddenMarkerBoundary
impl UnsafeUnpin for ForbiddenMarkerBoundary
impl UnwindSafe for ForbiddenMarkerBoundary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more