pub struct FixContextRegistry { /* private fields */ }Expand description
Registry that maps ruleset names to their FixContext implementations.
Implementations§
Source§impl FixContextRegistry
impl FixContextRegistry
Sourcepub fn register(&mut self, ctx: Box<dyn FixContext>)
pub fn register(&mut self, ctx: Box<dyn FixContext>)
Register a FixContext implementation.
The context is keyed by its ruleset_name().
Sourcepub fn get(&self, ruleset_name: &str) -> &dyn FixContext
pub fn get(&self, ruleset_name: &str) -> &dyn FixContext
Look up the FixContext for a given ruleset name.
Returns the generic fallback if no match is found.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FixContextRegistry
impl !UnwindSafe for FixContextRegistry
impl Freeze for FixContextRegistry
impl Send for FixContextRegistry
impl Sync for FixContextRegistry
impl Unpin for FixContextRegistry
impl UnsafeUnpin for FixContextRegistry
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