pub enum PreTokenizeError {
RegexError(Box<Error>),
}Expand description
Errors occuring while constructing a PreTokenizer or splitting input
using one.
Variants§
RegexError(Box<Error>)
An error occurred while constructing a regex from a pattern or splitting a string using a regex.
Trait Implementations§
Source§impl Clone for PreTokenizeError
impl Clone for PreTokenizeError
Source§fn clone(&self) -> PreTokenizeError
fn clone(&self) -> PreTokenizeError
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 moreSource§impl Debug for PreTokenizeError
impl Debug for PreTokenizeError
Source§impl Display for PreTokenizeError
impl Display for PreTokenizeError
Source§impl Error for PreTokenizeError
impl Error for PreTokenizeError
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<Error> for PreTokenizeError
impl From<Error> for PreTokenizeError
Source§impl From<PreTokenizeError> for FromJsonError
impl From<PreTokenizeError> for FromJsonError
Source§fn from(val: PreTokenizeError) -> Self
fn from(val: PreTokenizeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PreTokenizeError
impl RefUnwindSafe for PreTokenizeError
impl Send for PreTokenizeError
impl Sync for PreTokenizeError
impl Unpin for PreTokenizeError
impl UnwindSafe for PreTokenizeError
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