pub enum BddError {
TooManyVariables(usize),
MissingWitness,
UnknownVariable(String),
Limit(LimitError),
BudgetExceeded {
limit: usize,
},
}Expand description
BDD 判定错误。
Variants§
TooManyVariables(usize)
BDD 变量数超过 u16 上限。
MissingWitness
BDD 说可满足但取不到赋值(不应发生)。
UnknownVariable(String)
被量化的变量不在表达式里。
Limit(LimitError)
表达式超出资源预算。
BudgetExceeded
单个 BDD 的节点数超出预算。
Trait Implementations§
Source§impl Error for BddError
impl Error for BddError
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<BddError> for PolicyError
impl From<BddError> for PolicyError
Source§fn from(source: BddError) -> PolicyError
fn from(source: BddError) -> PolicyError
Converts to this type from the input type.
Source§impl From<LimitError> for BddError
impl From<LimitError> for BddError
Source§fn from(source: LimitError) -> BddError
fn from(source: LimitError) -> BddError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BddError
impl RefUnwindSafe for BddError
impl Send for BddError
impl Sync for BddError
impl Unpin for BddError
impl UnsafeUnpin for BddError
impl UnwindSafe for BddError
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