pub struct CompletionResult {
pub consumed: Vec<String>,
pub suggestions: Vec<String>,
}
Expand description
Result of completion, including consumed tokens and suggestions.
This struct is returned by completion methods to provide feedback on what has been parsed so far and possible ways to continue.
Fields§
§consumed: Vec<String>
Tokens already consumed from the input.
suggestions: Vec<String>
Suggested completions for the next token(s).
Trait Implementations§
Source§impl Clone for CompletionResult
impl Clone for CompletionResult
Source§fn clone(&self) -> CompletionResult
fn clone(&self) -> CompletionResult
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 CompletionResult
impl RefUnwindSafe for CompletionResult
impl Send for CompletionResult
impl Sync for CompletionResult
impl Unpin for CompletionResult
impl UnwindSafe for CompletionResult
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