Enum rxing::Exceptions
source · 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 fn illegal_argument_with<I: Into<String>>(x: I) -> Self
pub const UNSUPPORTED_OPERATION: Self = _
pub fn unsupported_operation_with<I: Into<String>>(x: I) -> Self
pub const ILLEGAL_STATE: Self = _
pub fn illegal_state_with<I: Into<String>>(x: I) -> Self
pub const ARITHMETIC: Self = _
pub fn arithmetic_with<I: Into<String>>(x: I) -> Self
pub const NOT_FOUND: Self = _
pub fn not_found_with<I: Into<String>>(x: I) -> Self
pub const FORMAT: Self = _
pub fn format_with<I: Into<String>>(x: I) -> Self
pub const CHECKSUM: Self = _
pub fn checksum_with<I: Into<String>>(x: I) -> Self
pub const READER: Self = _
pub fn reader_with<I: Into<String>>(x: I) -> Self
pub const WRITER: Self = _
pub fn writer_with<I: Into<String>>(x: I) -> Self
pub const REED_SOLOMON: Self = _
pub fn reed_solomon_with<I: Into<String>>(x: I) -> Self
pub const INDEX_OUT_OF_BOUNDS: Self = _
pub fn index_out_of_bounds_with<I: Into<String>>(x: I) -> Self
pub const RUNTIME: Self = _
pub fn runtime_with<I: Into<String>>(x: I) -> Self
pub const PARSE: 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 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 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 for Exceptions
impl PartialEq 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.
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
§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>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
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.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.