pub enum AigError {
DuplicateId(NodeId),
IdZeroButNotFalse,
NodeDoesNotExist(NodeId),
NoFanin,
InvalidState(String),
MiterError(MiterError),
ParserError(ParserError),
}Expand description
Error returned when an AIG operation failed.
Variants§
DuplicateId(NodeId)
A different node with the given id already exists.
IdZeroButNotFalse
The id 0 is reserved for the False constant node only.
NodeDoesNotExist(NodeId)
The node with given id does not exist.
NoFanin
Invalid operation on a node which does not have such specified fanin.
Latches only have FaninId::Fanin0.
InvalidState(String)
The AIG has reached an invalid state. This should never happen.
For example, when tracking the nodes internally with the hashmap nodes,
node nodes[id] should have id id. If this error is raised, my code is garbage.
MiterError(MiterError)
Just forwarding a MiterError.
ParserError(ParserError)
Just forwarding a ParserError.
Trait Implementations§
Source§impl Error for AigError
impl Error for AigError
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<MiterError> for AigError
impl From<MiterError> for AigError
Source§fn from(source: MiterError) -> Self
fn from(source: MiterError) -> Self
Converts to this type from the input type.
Source§impl From<ParserError> for AigError
impl From<ParserError> for AigError
Source§fn from(source: ParserError) -> Self
fn from(source: ParserError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AigError
impl RefUnwindSafe for AigError
impl Send for AigError
impl Sync for AigError
impl Unpin for AigError
impl UnwindSafe for AigError
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