pub struct OutputStyleManager { /* private fields */ }Implementations§
Source§impl OutputStyleManager
impl OutputStyleManager
pub fn new() -> Self
pub fn load_from_directory<P: AsRef<Path>>( dir: P, ) -> Result<Self, Box<dyn Error>>
pub fn get_style(&self, name: &str) -> Option<&OutputStyle>
pub fn list_styles(&self) -> Vec<(&String, &str)>
pub fn apply_style(&self, name: &str, base_prompt: &str) -> String
Trait Implementations§
Source§impl Debug for OutputStyleManager
impl Debug for OutputStyleManager
Auto Trait Implementations§
impl Freeze for OutputStyleManager
impl RefUnwindSafe for OutputStyleManager
impl Send for OutputStyleManager
impl Sync for OutputStyleManager
impl Unpin for OutputStyleManager
impl UnwindSafe for OutputStyleManager
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