Enum rxing::Exceptions
source · pub enum Exceptions {
Show 14 variants
IllegalArgumentException(Option<String>),
UnsupportedOperationException(Option<String>),
IllegalStateException(Option<String>),
ArithmeticException(Option<String>),
NotFoundException(Option<String>),
FormatException(Option<String>),
ChecksumException(Option<String>),
ReaderException(Option<String>),
WriterException(Option<String>),
ReedSolomonException(Option<String>),
IndexOutOfBoundsException(Option<String>),
RuntimeException(Option<String>),
ParseException(Option<String>),
ReaderDecodeException(),
}Variants§
IllegalArgumentException(Option<String>)
UnsupportedOperationException(Option<String>)
IllegalStateException(Option<String>)
ArithmeticException(Option<String>)
NotFoundException(Option<String>)
FormatException(Option<String>)
ChecksumException(Option<String>)
ReaderException(Option<String>)
WriterException(Option<String>)
ReedSolomonException(Option<String>)
IndexOutOfBoundsException(Option<String>)
RuntimeException(Option<String>)
ParseException(Option<String>)
ReaderDecodeException()
Implementations§
source§impl Exceptions
impl Exceptions
pub const illegalArgument: Self = _
pub fn illegalArgumentWith<I: Into<String>>(x: I) -> Self
pub const unsupportedOperation: Self = _
pub fn unsupportedOperationWith<I: Into<String>>(x: I) -> Self
pub const illegalState: Self = _
pub fn illegalStateWith<I: Into<String>>(x: I) -> Self
pub const arithmetic: Self = _
pub fn arithmeticWith<I: Into<String>>(x: I) -> Self
pub const notFound: Self = _
pub fn notFoundWith<I: Into<String>>(x: I) -> Self
pub const format: Self = _
pub fn formatWith<I: Into<String>>(x: I) -> Self
pub const checksum: Self = _
pub fn checksumWith<I: Into<String>>(x: I) -> Self
pub const reader: Self = _
pub fn readerWith<I: Into<String>>(x: I) -> Self
pub const writer: Self = _
pub fn writerWith<I: Into<String>>(x: I) -> Self
pub const reedSolomon: Self = _
pub fn reedSolomonWith<I: Into<String>>(x: I) -> Self
pub const indexOutOfBounds: Self = _
pub fn indexOutOfBoundsWith<I: Into<String>>(x: I) -> Self
pub const runtime: Self = _
pub fn runtimeWith<I: Into<String>>(x: I) -> Self
pub const parse: Self = _
pub fn parseWith<I: Into<String>>(x: I) -> Self
Trait Implementations§
source§impl Debug for Exceptions
impl Debug for Exceptions
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)>
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<Exceptions> for Exceptions
impl PartialEq<Exceptions> for Exceptions
source§fn eq(&self, other: &Exceptions) -> bool
fn eq(&self, other: &Exceptions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Exceptions
impl StructuralEq for Exceptions
impl StructuralPartialEq for Exceptions
Auto Trait Implementations§
impl RefUnwindSafe for Exceptions
impl Send for Exceptions
impl Sync for Exceptions
impl Unpin for Exceptions
impl UnwindSafe for Exceptions
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere Dst: ApproxFrom<Src, Scheme>, Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
§impl<T, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, DefaultApprox>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, DefaultApprox>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where Self: Sized + ApproxInto<Dst, Scheme>, Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.