pub struct GatePipeline { /* private fields */ }Expand description
An ordered gate sequence with the deterministic/model-judged ordering encoded in its storage: two sections, evaluated deterministic-first, so a pipeline with a model gate ahead of a deterministic gate is unrepresentable rather than merely rejected.
Implementations§
Source§impl GatePipeline
impl GatePipeline
pub fn new() -> Self
Sourcepub fn register(&mut self, gate: Box<dyn Gate>) -> &mut Self
pub fn register(&mut self, gate: Box<dyn Gate>) -> &mut Self
Register a gate. Its declared Gate::kind selects the section —
registration chooses an order within a section, never a position
across sections.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn evaluate(&self) -> Vec<GateReport>
pub fn evaluate(&self) -> Vec<GateReport>
Evaluate every gate in pipeline order: all deterministic gates in registration order, then all model-judged gates in registration order. Every gate runs and every outcome is returned — stopping at the first failure (as the merge-gate suite does internally) is a gate’s or caller’s policy, not the registry’s.
Trait Implementations§
Source§impl Default for GatePipeline
impl Default for GatePipeline
Source§fn default() -> GatePipeline
fn default() -> GatePipeline
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GatePipeline
impl !Send for GatePipeline
impl !Sync for GatePipeline
impl !UnwindSafe for GatePipeline
impl Freeze for GatePipeline
impl Unpin for GatePipeline
impl UnsafeUnpin for GatePipeline
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