quoted_printable Enum QuotedPrintableError Copy item path Source pub enum QuotedPrintableError {
InvalidByte,
LineTooLong,
IncompleteHexOctet,
InvalidHexOctet,
LowercaseHexOctet,
}
Expand description An error type that represents different kinds of decoding errors.
A byte was found in the input that was outside of the allowed range. The
allowed range is the horizontal tab (ASCII 0x09), CR/LF characters (ASCII
0x0D and 0x0A), and anything in the ASCII range 0x20 to 0x7E, inclusive.
Lines where found in the input that exceeded 76 bytes in length, excluding
the terminating CRLF.
An ‘=’ character was found in the input without the proper number of
hex-characters following it. This includes ‘=’ characters followed
by a single character and then the CRLF pair, for example.
An ‘=’ character was found with two following characters, but they were
not hex characters. ‘=Hi’ for example would be an invalid encoding.
An ‘=’ character was found with two following hex characters, but the
hex characters were lowercase rather than uppercase. The spec explicitly
requires uppercase hex to be used, so this is considered an error.
Performs copy-assignment from
source
.
Read more Formats the value using the given formatter.
Read more Formats the value using the given formatter.
Read more 👎 Deprecated since 1.42.0: use the Display impl or to_string()
👎 Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Returns the lower-level source of this error, if any.
Read more 🔬 This is a nightly-only experimental API. (error_generic_member_access
)
Provides type-based access to context intended for error reports.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self
and
other
values if one exists.
Read more Tests less than (for
self
and
other
) and is used by the
<
operator.
Read more Tests less than or equal to (for
self
and
other
) and is used by the
<=
operator.
Read more Tests greater than (for
self
and
other
) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self
and
other
) and is used by
the
>=
operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit
)
Performs copy-assignment from
self
to
dst
.
Read more Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From <T> for U
chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more Converts the given value to a
String
.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.