pub enum ApplyChatTemplateError {
NulError(NulError),
FromUtf8Error(FromUtf8Error),
}
Expand description
Failed to apply model chat template.
Variants§
NulError(NulError)
the string contained a null byte and thus could not be converted to a c string.
FromUtf8Error(FromUtf8Error)
the string could not be converted to utf8.
Trait Implementations§
Source§impl Debug for ApplyChatTemplateError
impl Debug for ApplyChatTemplateError
Source§impl Display for ApplyChatTemplateError
impl Display for ApplyChatTemplateError
Source§impl Error for ApplyChatTemplateError
impl Error for ApplyChatTemplateError
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<FromUtf8Error> for ApplyChatTemplateError
impl From<FromUtf8Error> for ApplyChatTemplateError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ApplyChatTemplateError
impl RefUnwindSafe for ApplyChatTemplateError
impl Send for ApplyChatTemplateError
impl Sync for ApplyChatTemplateError
impl Unpin for ApplyChatTemplateError
impl UnwindSafe for ApplyChatTemplateError
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