pub enum TokenizerError {
TokenizationError,
ToStringError,
TokenizerCreationError,
TokenCollectionTypeMismatch,
}
Variants§
Trait Implementations§
Source§impl Clone for TokenizerError
impl Clone for TokenizerError
Source§fn clone(&self) -> TokenizerError
fn clone(&self) -> TokenizerError
Returns a copy 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 moreSource§impl Debug for TokenizerError
impl Debug for TokenizerError
Source§impl Display for TokenizerError
impl Display for TokenizerError
Source§impl Error for TokenizerError
impl Error for TokenizerError
1.30.0 · 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<TokenizerError> for Error
impl From<TokenizerError> for Error
Source§fn from(source: TokenizerError) -> Self
fn from(source: TokenizerError) -> Self
Converts to this type from the input type.
Source§impl From<TokenizerError> for PromptTokensError
impl From<TokenizerError> for PromptTokensError
Source§fn from(source: TokenizerError) -> Self
fn from(source: TokenizerError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TokenizerError
impl RefUnwindSafe for TokenizerError
impl Send for TokenizerError
impl Sync for TokenizerError
impl Unpin for TokenizerError
impl UnwindSafe for TokenizerError
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