pub struct PromptContext { /* private fields */ }Implementations§
Source§impl PromptContext
impl PromptContext
pub fn new() -> Self
pub fn push_section( &mut self, title: impl Into<String>, body: impl Into<String>, )
pub fn with_section( self, title: impl Into<String>, body: impl Into<String>, ) -> Self
pub fn push_available_skills(&mut self, body: impl Into<String>)
pub fn with_available_skills(self, body: impl Into<String>) -> Self
pub fn extend(&mut self, other: PromptContext)
pub fn is_empty(&self) -> bool
pub fn render_sections(&self) -> Vec<String>
Trait Implementations§
Source§impl Clone for PromptContext
impl Clone for PromptContext
Source§fn clone(&self) -> PromptContext
fn clone(&self) -> PromptContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromptContext
impl Debug for PromptContext
Source§impl Default for PromptContext
impl Default for PromptContext
Source§fn default() -> PromptContext
fn default() -> PromptContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for PromptContext
impl PartialEq for PromptContext
Source§fn eq(&self, other: &PromptContext) -> bool
fn eq(&self, other: &PromptContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PromptContext
impl StructuralPartialEq for PromptContext
Auto Trait Implementations§
impl Freeze for PromptContext
impl RefUnwindSafe for PromptContext
impl Send for PromptContext
impl Sync for PromptContext
impl Unpin for PromptContext
impl UnsafeUnpin for PromptContext
impl UnwindSafe for PromptContext
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