#[non_exhaustive]pub enum AddressEditError {
UnsupportedHeader,
Malformed(HeaderError),
IndexOutOfRange {
index: usize,
},
InvalidUri(UriError),
InvalidDisplayName,
}Expand description
Why a parser-owned address value could not be edited losslessly.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnsupportedHeader
The field does not use one of the address grammars exposed by this operation.
Malformed(HeaderError)
At least one row did not match the field’s shared address grammar.
IndexOutOfRange
The flattened, zero-based value index does not exist.
InvalidUri(UriError)
The replacement URI did not survive serialization as a valid URI.
InvalidDisplayName
A replacement display name contains a header-delimiting control byte.
Trait Implementations§
Source§impl Clone for AddressEditError
impl Clone for AddressEditError
Source§fn clone(&self) -> AddressEditError
fn clone(&self) -> AddressEditError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddressEditError
impl Debug for AddressEditError
Source§impl Display for AddressEditError
impl Display for AddressEditError
Source§impl Error for AddressEditError
impl Error for AddressEditError
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 AddressEditError
impl PartialEq for AddressEditError
Source§fn eq(&self, other: &AddressEditError) -> bool
fn eq(&self, other: &AddressEditError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AddressEditError
impl StructuralPartialEq for AddressEditError
Auto Trait Implementations§
impl Freeze for AddressEditError
impl RefUnwindSafe for AddressEditError
impl Send for AddressEditError
impl Sync for AddressEditError
impl Unpin for AddressEditError
impl UnsafeUnpin for AddressEditError
impl UnwindSafe for AddressEditError
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