pub struct PromptContributionSet { /* private fields */ }Implementations§
Source§impl PromptContributionSet
impl PromptContributionSet
pub fn new(contributions: Vec<PromptContribution>) -> PromptContributionSet
pub fn empty() -> PromptContributionSet
pub fn as_arc(&self) -> Arc<Vec<PromptContribution>> ⓘ
pub fn as_slice(&self) -> &[PromptContribution]
pub fn fingerprint(&self) -> PromptFingerprint
Trait Implementations§
Source§impl Clone for PromptContributionSet
impl Clone for PromptContributionSet
Source§fn clone(&self) -> PromptContributionSet
fn clone(&self) -> PromptContributionSet
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 PromptContributionSet
impl Debug for PromptContributionSet
Source§impl Default for PromptContributionSet
impl Default for PromptContributionSet
Source§fn default() -> PromptContributionSet
fn default() -> PromptContributionSet
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PromptContributionSet
impl RefUnwindSafe for PromptContributionSet
impl Send for PromptContributionSet
impl Sync for PromptContributionSet
impl Unpin for PromptContributionSet
impl UnsafeUnpin for PromptContributionSet
impl UnwindSafe for PromptContributionSet
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