Enum frost_core::FieldError
source · #[non_exhaustive]
pub enum FieldError {
MalformedScalar,
InvalidZeroScalar,
}
Expand description
An error related to a scalar Field.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MalformedScalar
The encoding of a group scalar was malformed.
InvalidZeroScalar
This scalar MUST NOT be zero.
Trait Implementations§
source§impl Clone for FieldError
impl Clone for FieldError
source§fn clone(&self) -> FieldError
fn clone(&self) -> FieldError
Returns a copy 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 FieldError
impl Debug for FieldError
source§impl Display for FieldError
impl Display for FieldError
source§impl Error for FieldError
impl Error for FieldError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<C: Ciphersuite> From<FieldError> for Error<C>
impl<C: Ciphersuite> From<FieldError> for Error<C>
source§fn from(source: FieldError) -> Self
fn from(source: FieldError) -> Self
Converts to this type from the input type.
source§impl PartialEq<FieldError> for FieldError
impl PartialEq<FieldError> for FieldError
source§fn eq(&self, other: &FieldError) -> bool
fn eq(&self, other: &FieldError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.