pub enum LogitsError {
InvalidLogit(usize),
InternalError(String),
}Expand description
Logit errors
Variants§
InvalidLogit(usize)
Contains the position (AKA token id) of the offending logit. Logits cannot be NaN.
InternalError(String)
General internal error type.
Trait Implementations§
Source§impl Clone for LogitsError
impl Clone for LogitsError
Source§fn clone(&self) -> LogitsError
fn clone(&self) -> LogitsError
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 LogitsError
impl Debug for LogitsError
Source§impl Display for LogitsError
impl Display for LogitsError
Source§impl Error for LogitsError
impl Error for LogitsError
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<LogitsError> for SamplerError
impl From<LogitsError> for SamplerError
Source§fn from(value: LogitsError) -> Self
fn from(value: LogitsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LogitsError
impl RefUnwindSafe for LogitsError
impl Send for LogitsError
impl Sync for LogitsError
impl Unpin for LogitsError
impl UnwindSafe for LogitsError
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