Enum sunscreen_fhe_program::NodeError
source · [−]pub enum NodeError {
MissingOperand(EdgeInfo),
MissingParent(NodeIndex),
ParentHasIncorrectOutputType(EdgeInfo, OutputType, OutputType),
WrongOperandCount(usize, usize),
}
Expand description
An error on a node in an FheProgram
.
Variants
MissingOperand(EdgeInfo)
The node is missing an expected operand of the contained type.
MissingParent(NodeIndex)
The parent node specified at the given EdgeInfo
does not exist.
ParentHasIncorrectOutputType(EdgeInfo, OutputType, OutputType)
For the parent at EdgeInfo (first argument), the expected output type (second argument) does not match the actual (third argument) output type.
WrongOperandCount(usize, usize)
The node has expects a specific number of input operands (first argument), but got some other number (second argument).
Trait Implementations
impl Copy for NodeError
impl StructuralPartialEq for NodeError
Auto Trait Implementations
impl RefUnwindSafe for NodeError
impl Send for NodeError
impl Sync for NodeError
impl Unpin for NodeError
impl UnwindSafe for NodeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more