pub struct PromptManager<T: Hash + Eq> { /* private fields */ }
Implementations§
Source§impl<T: Hash + Eq> PromptManager<T>
impl<T: Hash + Eq> PromptManager<T>
pub fn new() -> Self
pub fn insert_prompt(&mut self, alias: &str, prompt: PromptMessage)
pub fn register_pattern(&mut self, key: T, pattern: &str)
pub fn get(&self, key: T) -> Vec<PromptMessage>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for PromptManager<T>
impl<T> !RefUnwindSafe for PromptManager<T>
impl<T> Send for PromptManager<T>where
T: Send,
impl<T> Sync for PromptManager<T>where
T: Sync,
impl<T> Unpin for PromptManager<T>where
T: Unpin,
impl<T> !UnwindSafe for PromptManager<T>
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