pub enum PromptTransform {
Reorder(Vec<String>),
Only(Vec<String>),
Without(Vec<String>),
}Expand description
A declarative transform that can be applied to a PromptComposite.
Created by P::reorder(), P::only(), and P::without().
Variants§
Reorder(Vec<String>)
Reorder sections by name.
Only(Vec<String>)
Keep only sections with these names.
Without(Vec<String>)
Remove sections with these names.
Trait Implementations§
Source§impl Clone for PromptTransform
impl Clone for PromptTransform
Source§fn clone(&self) -> PromptTransform
fn clone(&self) -> PromptTransform
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 moreAuto Trait Implementations§
impl Freeze for PromptTransform
impl RefUnwindSafe for PromptTransform
impl Send for PromptTransform
impl Sync for PromptTransform
impl Unpin for PromptTransform
impl UnwindSafe for PromptTransform
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