pub enum FancyError {
UnequalModuli,
InvalidArg(String),
InvalidArgNum {
got: usize,
needed: usize,
},
InvalidArgMod {
got: u16,
needed: u16,
},
ArgNotBinary,
NoTruthTable,
InvalidTruthTable,
UninitializedValue,
}Expand description
Errors that may occur when using the Fancy trait. These errors are
API-usage errors, such as trying to add two Items with different moduli.
Variants§
UnequalModuli
Unequal moduli.
InvalidArg(String)
Invalid argument.
InvalidArgNum
Invalid number of arguments.
InvalidArgMod
Invalid argument modulus.
ArgNotBinary
Expected binary argument.
NoTruthTable
Truth table expected but none given.
InvalidTruthTable
Projection truth table is invalid.
UninitializedValue
Uninitialized value encountered.
Trait Implementations§
Source§impl Debug for FancyError
impl Debug for FancyError
Source§impl Display for FancyError
impl Display for FancyError
Source§impl From<FancyError> for CircuitBuilderError
impl From<FancyError> for CircuitBuilderError
Source§fn from(e: FancyError) -> Self
fn from(e: FancyError) -> Self
Converts to this type from the input type.
Source§impl From<FancyError> for DepthError
impl From<FancyError> for DepthError
Source§fn from(e: FancyError) -> Self
fn from(e: FancyError) -> Self
Converts to this type from the input type.
Source§impl From<FancyError> for DummyError
impl From<FancyError> for DummyError
Source§fn from(e: FancyError) -> DummyError
fn from(e: FancyError) -> DummyError
Converts to this type from the input type.
Source§impl From<FancyError> for EvaluatorError
impl From<FancyError> for EvaluatorError
Source§fn from(e: FancyError) -> Self
fn from(e: FancyError) -> Self
Converts to this type from the input type.
Source§impl From<FancyError> for GarblerError
impl From<FancyError> for GarblerError
Source§fn from(e: FancyError) -> Self
fn from(e: FancyError) -> Self
Converts to this type from the input type.
Source§impl From<FancyError> for TwopacError
impl From<FancyError> for TwopacError
Source§fn from(e: FancyError) -> TwopacError
fn from(e: FancyError) -> TwopacError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FancyError
impl RefUnwindSafe for FancyError
impl Send for FancyError
impl Sync for FancyError
impl Unpin for FancyError
impl UnwindSafe for FancyError
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> 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§impl<T> IsSameType<T> for T
impl<T> IsSameType<T> for T
§type EqualityProposition = TrueEqualityProposition
type EqualityProposition = TrueEqualityProposition
The [
EqualityProposition] that Self == T