Enum EncodingError
pub enum EncodingError<A: Arch> {
NotSupported,
RandomizationFailed(RandomizationError),
RemapFailed(RemapError<A>),
Oracle(OracleError),
}
Expand description
Error returned when EncodingAnalysis
fails.
Variants§
NotSupported
RandomizationFailed(RandomizationError)
RemapFailed(RemapError<A>)
Oracle(OracleError)
Trait Implementations§
§impl<A: Debug + Arch> Debug for EncodingError<A>
impl<A: Debug + Arch> Debug for EncodingError<A>
§impl<A: Arch> Display for EncodingError<A>
impl<A: Arch> Display for EncodingError<A>
§impl<A: Arch> Error for EncodingError<A>
impl<A: Arch> Error for EncodingError<A>
1.30.0 · 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()
§impl<A: Arch> From<OracleError> for EncodingError<A>
impl<A: Arch> From<OracleError> for EncodingError<A>
§fn from(e: OracleError) -> Self
fn from(e: OracleError) -> Self
Converts to this type from the input type.
§impl<A: Arch> From<RandomizationError> for EncodingError<A>
impl<A: Arch> From<RandomizationError> for EncodingError<A>
§fn from(e: RandomizationError) -> Self
fn from(e: RandomizationError) -> Self
Converts to this type from the input type.
§impl<A: Arch> From<RemapError<A>> for EncodingError<A>
impl<A: Arch> From<RemapError<A>> for EncodingError<A>
§fn from(e: RemapError<A>) -> Self
fn from(e: RemapError<A>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<A> Freeze for EncodingError<A>where
A: Freeze,
impl<A> RefUnwindSafe for EncodingError<A>where
A: RefUnwindSafe,
impl<A> Send for EncodingError<A>
impl<A> Sync for EncodingError<A>
impl<A> Unpin for EncodingError<A>where
A: Unpin,
impl<A> UnwindSafe for EncodingError<A>where
A: UnwindSafe,
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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