Enum svgdom::Error [−][src]
pub enum Error { ElementMustHaveAnId, ElementCrosslink, }
SVG DOM errors.
Variants
ElementMustHaveAnId
If you want to use referenced element inside link attribute, such element must have a non-empty ID.
ElementCrosslink
Linked nodes can't reference each other or itself.
Examples
<linearGradient id="lg1" xlink:href="#lg2"/>
<linearGradient id="lg2" xlink:href="#lg1"/>
or
<linearGradient id="lg1" xlink:href="#lg1"/>
Trait Implementations
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for Error
[src]
impl Display for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for Error
[src]
impl Error for Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl From<Error> for ParserError
[src]
impl From<Error> for ParserError