pub enum AutosuggestGeneratorHandoffError {
Artifact(AutosuggestArtifactError),
InvalidBuffer {
field: &'static str,
expected: usize,
actual: usize,
},
MissingCandidatePool,
MissingScoredUnionPolicy,
InvalidGeneratedTokenId {
index: usize,
token_id: i64,
},
}Variants§
Artifact(AutosuggestArtifactError)
InvalidBuffer
MissingCandidatePool
MissingScoredUnionPolicy
InvalidGeneratedTokenId
Trait Implementations§
Source§impl Clone for AutosuggestGeneratorHandoffError
impl Clone for AutosuggestGeneratorHandoffError
Source§fn clone(&self) -> AutosuggestGeneratorHandoffError
fn clone(&self) -> AutosuggestGeneratorHandoffError
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 Error for AutosuggestGeneratorHandoffError
impl Error for AutosuggestGeneratorHandoffError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<AutosuggestArtifactError> for AutosuggestGeneratorHandoffError
impl From<AutosuggestArtifactError> for AutosuggestGeneratorHandoffError
Source§fn from(error: AutosuggestArtifactError) -> Self
fn from(error: AutosuggestArtifactError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for AutosuggestGeneratorHandoffError
Auto Trait Implementations§
impl Freeze for AutosuggestGeneratorHandoffError
impl RefUnwindSafe for AutosuggestGeneratorHandoffError
impl Send for AutosuggestGeneratorHandoffError
impl Sync for AutosuggestGeneratorHandoffError
impl Unpin for AutosuggestGeneratorHandoffError
impl UnsafeUnpin for AutosuggestGeneratorHandoffError
impl UnwindSafe for AutosuggestGeneratorHandoffError
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