pub enum PromptInstructionKind {
Task,
Constraint,
Style,
Safety,
Role,
Format,
Context,
Example,
ToolUse,
Refusal,
Custom,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PromptInstructionKind
impl Clone for PromptInstructionKind
Source§fn clone(&self) -> PromptInstructionKind
fn clone(&self) -> PromptInstructionKind
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptInstructionKind
impl Debug for PromptInstructionKind
Source§impl Display for PromptInstructionKind
impl Display for PromptInstructionKind
Source§impl FromStr for PromptInstructionKind
impl FromStr for PromptInstructionKind
Source§impl Hash for PromptInstructionKind
impl Hash for PromptInstructionKind
Source§impl Ord for PromptInstructionKind
impl Ord for PromptInstructionKind
Source§fn cmp(&self, other: &PromptInstructionKind) -> Ordering
fn cmp(&self, other: &PromptInstructionKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PromptInstructionKind
impl PartialEq for PromptInstructionKind
Source§impl PartialOrd for PromptInstructionKind
impl PartialOrd for PromptInstructionKind
impl Copy for PromptInstructionKind
impl Eq for PromptInstructionKind
impl StructuralPartialEq for PromptInstructionKind
Auto Trait Implementations§
impl Freeze for PromptInstructionKind
impl RefUnwindSafe for PromptInstructionKind
impl Send for PromptInstructionKind
impl Sync for PromptInstructionKind
impl Unpin for PromptInstructionKind
impl UnsafeUnpin for PromptInstructionKind
impl UnwindSafe for PromptInstructionKind
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