pub enum EnforceError {
NotEncoded,
Unsat,
}
Expand description
Usage errors for methods enforcing a bound
Variants§
NotEncoded
Encode was not called before using the encoding
Unsat
The requested encoding is unsatisfiable
Trait Implementations§
Source§impl Clone for EnforceError
impl Clone for EnforceError
Source§fn clone(&self) -> EnforceError
fn clone(&self) -> EnforceError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EnforceError
impl Debug for EnforceError
Source§impl Display for EnforceError
impl Display for EnforceError
Source§impl Error for EnforceError
impl Error for EnforceError
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()
Source§impl From<NotEncoded> for EnforceError
impl From<NotEncoded> for EnforceError
Source§fn from(_: NotEncoded) -> Self
fn from(_: NotEncoded) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EnforceError
impl PartialEq for EnforceError
impl Copy for EnforceError
impl Eq for EnforceError
impl StructuralPartialEq for EnforceError
Auto Trait Implementations§
impl Freeze for EnforceError
impl RefUnwindSafe for EnforceError
impl Send for EnforceError
impl Sync for EnforceError
impl Unpin for EnforceError
impl UnwindSafe for EnforceError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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