pub enum KzgErrors {
FailedCurrentDirectory,
PathNotExists,
IOError,
NotValidFile,
FileFormatError,
ParseError,
MismatchedNumberOfPoints,
}
Available on crate feature
kzg
only.Expand description
KZG custom Error types
Variants§
FailedCurrentDirectory
Failed to get current directory.
PathNotExists
The specified path does not exist.
IOError
Problems related to I/O.
NotValidFile
Not a valid file.
FileFormatError
File is not properly formatted.
ParseError
Not able to parse to usize.
MismatchedNumberOfPoints
Number of points does not match what is expected.
Trait Implementations§
source§impl Error for KzgErrors
Available on crate feature std
only.
impl Error for KzgErrors
Available on crate feature
std
only.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 Copy for KzgErrors
Auto Trait Implementations§
impl Freeze for KzgErrors
impl RefUnwindSafe for KzgErrors
impl Send for KzgErrors
impl Sync for KzgErrors
impl Unpin for KzgErrors
impl UnwindSafe for KzgErrors
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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