pub struct IntentFormalizationCache { /* private fields */ }Implementations§
Source§impl IntentFormalizationCache
impl IntentFormalizationCache
pub const fn new() -> Self
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, prompt: &str) -> Option<&IntentFormalization>
pub fn formalize_or_insert( &mut self, prompt: &str, language: &str, candidate: Option<&FormalizationCandidate>, ) -> IntentFormalizationCacheEntry
pub fn append_to_link_store<S: LinkStore>( &self, store: &mut S, ) -> Result<usize, LinkStoreError>
Trait Implementations§
Source§impl Clone for IntentFormalizationCache
impl Clone for IntentFormalizationCache
Source§fn clone(&self) -> IntentFormalizationCache
fn clone(&self) -> IntentFormalizationCache
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 IntentFormalizationCache
impl Debug for IntentFormalizationCache
Source§impl Default for IntentFormalizationCache
impl Default for IntentFormalizationCache
Source§fn default() -> IntentFormalizationCache
fn default() -> IntentFormalizationCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for IntentFormalizationCache
impl RefUnwindSafe for IntentFormalizationCache
impl Send for IntentFormalizationCache
impl Sync for IntentFormalizationCache
impl Unpin for IntentFormalizationCache
impl UnsafeUnpin for IntentFormalizationCache
impl UnwindSafe for IntentFormalizationCache
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