Enum bridgestan::BridgeStanError
source · #[non_exhaustive]pub enum BridgeStanError {
InvalidLibrary(LoadingError),
BadLibraryVersion(String, String),
StanThreads(String),
InvalidString(Utf8Error),
ConstructFailed(String),
EvaluationFailed(String),
SetCallbackFailed(String),
}Expand description
Error type for bridgestan interface
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidLibrary(LoadingError)
The provided library could not be loaded.
BadLibraryVersion(String, String)
The version of the Stan library does not match the version of the rust crate.
StanThreads(String)
The Stan library could not be loaded because it was compiled without threading support.
InvalidString(Utf8Error)
Stan returned a string that couldn’t be decoded using UTF8.
ConstructFailed(String)
The model could not be instantiated, possibly because if incorrect data.
EvaluationFailed(String)
Stan returned an error while computing the density.
SetCallbackFailed(String)
Setting a print-callback failed.
Trait Implementations§
source§impl Debug for BridgeStanError
impl Debug for BridgeStanError
source§impl Display for BridgeStanError
impl Display for BridgeStanError
source§impl Error for BridgeStanError
impl Error for BridgeStanError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl Freeze for BridgeStanError
impl !RefUnwindSafe for BridgeStanError
impl Send for BridgeStanError
impl Sync for BridgeStanError
impl Unpin for BridgeStanError
impl !UnwindSafe for BridgeStanError
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