pub enum SamplerError {
InternalError(String),
MissingResource(String),
LogitsError(LogitsError),
RandError(Error),
RandWeightedError(WeightedError),
}Expand description
Sampler errors
Variants§
InternalError(String)
General internal error type.
MissingResource(String)
Missing resource error type.
LogitsError(LogitsError)
Container for errors that occured while processing logits.
RandError(Error)
RNG-related errors
RandWeightedError(WeightedError)
RNG weights-related errors
Trait Implementations§
Source§impl Debug for SamplerError
impl Debug for SamplerError
Source§impl Display for SamplerError
impl Display for SamplerError
Source§impl Error for SamplerError
impl Error for SamplerError
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 SamplerError
impl !RefUnwindSafe for SamplerError
impl Send for SamplerError
impl Sync for SamplerError
impl Unpin for SamplerError
impl !UnwindSafe for SamplerError
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