pub enum EditXMLError {
Io(Arc<Error>),
CannotDecode(DecodeError),
MalformedXML(MalformedReason),
ContainerCannotMove,
HasAParent,
AttrError(AttrError),
OtherXML(Error),
}
Expand description
Error types
Variants§
Io(Arc<Error>)
std::io
related error.
CannotDecode(DecodeError)
Decoding related error. Maybe the XML declaration has an encoding value that it doesn’t recognize, or it doesn’t match its actual encoding,
MalformedXML(MalformedReason)
Assorted errors while parsing XML.
ContainerCannotMove
The container element cannot have a parent.
Use element.is_container()
to check if it is a container before
assigning it to another parent.
HasAParent
You need to call element.detach()
before assigning another parent.
AttrError(AttrError)
OtherXML(Error)
Trait Implementations§
Source§impl Debug for EditXMLError
impl Debug for EditXMLError
Source§impl Display for EditXMLError
impl Display for EditXMLError
Source§impl Error for EditXMLError
impl Error for EditXMLError
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 From<AttrError> for EditXMLError
impl From<AttrError> for EditXMLError
Source§impl From<DecodeError> for EditXMLError
impl From<DecodeError> for EditXMLError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for EditXMLError
impl From<Error> for EditXMLError
Source§fn from(err: XMLError) -> EditXMLError
fn from(err: XMLError) -> EditXMLError
Converts to this type from the input type.
Source§impl From<Error> for EditXMLError
impl From<Error> for EditXMLError
Source§fn from(err: Error) -> EditXMLError
fn from(err: Error) -> EditXMLError
Converts to this type from the input type.
Source§impl From<EscapeError> for EditXMLError
impl From<EscapeError> for EditXMLError
Source§fn from(error: EscapeError) -> EditXMLError
fn from(error: EscapeError) -> EditXMLError
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for EditXMLError
impl From<FromUtf8Error> for EditXMLError
Source§fn from(error: FromUtf8Error) -> EditXMLError
fn from(error: FromUtf8Error) -> EditXMLError
Converts to this type from the input type.
Source§impl From<MalformedReason> for EditXMLError
impl From<MalformedReason> for EditXMLError
Source§fn from(source: MalformedReason) -> Self
fn from(source: MalformedReason) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for EditXMLError
impl From<Utf8Error> for EditXMLError
Source§fn from(error: Utf8Error) -> EditXMLError
fn from(error: Utf8Error) -> EditXMLError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EditXMLError
impl !RefUnwindSafe for EditXMLError
impl Send for EditXMLError
impl Sync for EditXMLError
impl Unpin for EditXMLError
impl !UnwindSafe for EditXMLError
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