pub enum StateModelError {
EncodeError(String, String),
DecodeError(StateVariable, String, String),
ValueError(StateVariable, String),
UnknownStateVariableName(String, String),
InvalidStateVariableIndex(String, usize, usize),
UnexpectedFeatureType(String, String),
UnexpectedFeatureUnit(String, String),
UnitsFailure {
source: UnitError,
},
BuildError(String),
RuntimeError(String),
}Variants§
EncodeError(String, String)
DecodeError(StateVariable, String, String)
ValueError(StateVariable, String)
UnknownStateVariableName(String, String)
InvalidStateVariableIndex(String, usize, usize)
UnexpectedFeatureType(String, String)
UnexpectedFeatureUnit(String, String)
UnitsFailure
BuildError(String)
RuntimeError(String)
Trait Implementations§
Source§impl Clone for StateModelError
impl Clone for StateModelError
Source§fn clone(&self) -> StateModelError
fn clone(&self) -> StateModelError
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 StateModelError
impl Debug for StateModelError
Source§impl Display for StateModelError
impl Display for StateModelError
Source§impl Error for StateModelError
impl Error for StateModelError
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<StateModelError> for ConstraintModelError
impl From<StateModelError> for ConstraintModelError
Source§fn from(source: StateModelError) -> Self
fn from(source: StateModelError) -> Self
Converts to this type from the input type.
Source§impl From<StateModelError> for CostModelError
impl From<StateModelError> for CostModelError
Source§fn from(source: StateModelError) -> Self
fn from(source: StateModelError) -> Self
Converts to this type from the input type.
Source§impl From<StateModelError> for LabelModelError
impl From<StateModelError> for LabelModelError
Source§fn from(source: StateModelError) -> Self
fn from(source: StateModelError) -> Self
Converts to this type from the input type.
Source§impl From<StateModelError> for SearchError
impl From<StateModelError> for SearchError
Source§fn from(source: StateModelError) -> Self
fn from(source: StateModelError) -> Self
Converts to this type from the input type.
Source§impl From<StateModelError> for TraversalModelError
impl From<StateModelError> for TraversalModelError
Source§fn from(source: StateModelError) -> Self
fn from(source: StateModelError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StateModelError
impl RefUnwindSafe for StateModelError
impl Send for StateModelError
impl Sync for StateModelError
impl Unpin for StateModelError
impl UnsafeUnpin for StateModelError
impl UnwindSafe for StateModelError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more