pub enum Exceptions {
Show 14 variants
IllegalArgumentException(String),
UnsupportedOperationException(String),
IllegalStateException(String),
ArithmeticException(String),
NotFoundException(String),
FormatException(String),
ChecksumException(String),
ReaderException(String),
WriterException(String),
ReedSolomonException(String),
IndexOutOfBoundsException(String),
RuntimeException(String),
ParseException(String),
ReaderDecodeException(),
}Variants§
IllegalArgumentException(String)
UnsupportedOperationException(String)
IllegalStateException(String)
ArithmeticException(String)
NotFoundException(String)
FormatException(String)
ChecksumException(String)
ReaderException(String)
WriterException(String)
ReedSolomonException(String)
IndexOutOfBoundsException(String)
RuntimeException(String)
ParseException(String)
ReaderDecodeException()
Implementations§
Source§impl Exceptions
impl Exceptions
pub const ILLEGAL_ARGUMENT: Self
pub const UNSUPPORTED_OPERATION: Self
pub const ILLEGAL_STATE: Self
pub const ARITHMETIC: Self
pub const NOT_FOUND: Self
pub const FORMAT: Self
pub const CHECKSUM: Self
pub const READER: Self
pub const WRITER: Self
pub const REED_SOLOMON: Self
pub const INDEX_OUT_OF_BOUNDS: Self
pub const RUNTIME: Self
pub const PARSE: Self
pub fn illegal_argument_with<I: Into<String>>(x: I) -> Self
pub fn unsupported_operation_with<I: Into<String>>(x: I) -> Self
pub fn illegal_state_with<I: Into<String>>(x: I) -> Self
pub fn arithmetic_with<I: Into<String>>(x: I) -> Self
pub fn not_found_with<I: Into<String>>(x: I) -> Self
pub fn format_with<I: Into<String>>(x: I) -> Self
pub fn checksum_with<I: Into<String>>(x: I) -> Self
pub fn reader_with<I: Into<String>>(x: I) -> Self
pub fn writer_with<I: Into<String>>(x: I) -> Self
pub fn reed_solomon_with<I: Into<String>>(x: I) -> Self
pub fn index_out_of_bounds_with<I: Into<String>>(x: I) -> Self
pub fn runtime_with<I: Into<String>>(x: I) -> Self
pub fn parse_with<I: Into<String>>(x: I) -> Self
Trait Implementations§
Source§impl Clone for Exceptions
impl Clone for Exceptions
Source§fn clone(&self) -> Exceptions
fn clone(&self) -> Exceptions
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 Exceptions
impl Debug for Exceptions
Source§impl<'de> Deserialize<'de> for Exceptions
impl<'de> Deserialize<'de> for Exceptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for Exceptions
impl Display for Exceptions
Source§impl Error for Exceptions
impl Error for Exceptions
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 PartialEq for Exceptions
impl PartialEq for Exceptions
Source§impl Serialize for Exceptions
impl Serialize for Exceptions
impl Eq for Exceptions
impl StructuralPartialEq for Exceptions
Auto Trait Implementations§
impl Freeze for Exceptions
impl RefUnwindSafe for Exceptions
impl Send for Exceptions
impl Sync for Exceptions
impl Unpin for Exceptions
impl UnwindSafe for Exceptions
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.