Enum pairing_ce::GroupDecodingError
source · [−]pub enum GroupDecodingError {
NotOnCurve,
NotInSubgroup,
CoordinateDecodingError(&'static str, PrimeFieldDecodingError),
UnexpectedCompressionMode,
UnexpectedInformation,
}
Expand description
An error that may occur when trying to decode an EncodedPoint
.
Variants
NotOnCurve
The coordinate(s) do not lie on the curve.
NotInSubgroup
The element is not part of the r-order subgroup.
CoordinateDecodingError(&'static str, PrimeFieldDecodingError)
One of the coordinates could not be decoded
UnexpectedCompressionMode
The compression mode of the encoded element was not as expected
UnexpectedInformation
The encoding contained bits that should not have been set
Trait Implementations
sourceimpl Debug for GroupDecodingError
impl Debug for GroupDecodingError
sourceimpl Display for GroupDecodingError
impl Display for GroupDecodingError
sourceimpl Error for GroupDecodingError
impl Error for GroupDecodingError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
Auto Trait Implementations
impl RefUnwindSafe for GroupDecodingError
impl Send for GroupDecodingError
impl Sync for GroupDecodingError
impl Unpin for GroupDecodingError
impl UnwindSafe for GroupDecodingError
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