pub struct DecisionRegistry { /* private fields */ }Expand description
Ordered catalog of declared policy node names.
Implementations§
Source§impl DecisionRegistry
impl DecisionRegistry
Sourcepub fn register<N>(&mut self, node: &N) -> RuntimeResult<()>where
N: DecisionNode,
pub fn register<N>(&mut self, node: &N) -> RuntimeResult<()>where
N: DecisionNode,
Registers the name exposed by a decision node.
Sourcepub fn register_name(&mut self, name: &str) -> RuntimeResult<()>
pub fn register_name(&mut self, name: &str) -> RuntimeResult<()>
Registers a decision node name directly.
Trait Implementations§
Source§impl Debug for DecisionRegistry
impl Debug for DecisionRegistry
Source§impl Default for DecisionRegistry
impl Default for DecisionRegistry
Source§fn default() -> DecisionRegistry
fn default() -> DecisionRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DecisionRegistry
impl RefUnwindSafe for DecisionRegistry
impl Send for DecisionRegistry
impl Sync for DecisionRegistry
impl Unpin for DecisionRegistry
impl UnsafeUnpin for DecisionRegistry
impl UnwindSafe for DecisionRegistry
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