pub struct AdapterRegistry { /* private fields */ }Implementations§
Source§impl AdapterRegistry
impl AdapterRegistry
pub fn new(modules: Vec<PromptModule>) -> Result<Self, PromptError>
pub fn select( &self, c: &SelectionContext, ) -> Result<Vec<&PromptModule>, PromptError>
Auto Trait Implementations§
impl Freeze for AdapterRegistry
impl RefUnwindSafe for AdapterRegistry
impl Send for AdapterRegistry
impl Sync for AdapterRegistry
impl Unpin for AdapterRegistry
impl UnsafeUnpin for AdapterRegistry
impl UnwindSafe for AdapterRegistry
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