[][src]Enum rsvg_internals::HrefError

pub enum HrefError {
    ParseError,
    FragmentForbidden,
    FragmentRequired,
}

Errors returned when creating an Href out of a string

Variants

ParseError

The href is an invalid URI or has empty components.

FragmentForbidden

A fragment identifier ("#foo") is not allowed here

For example, the SVG <image> element only allows referencing resources without fragment identifiers like xlink:href="foo.png".

FragmentRequired

A fragment identifier ("#foo") was required but not found. For example, the SVG <use> element requires one, as in <use xlink:href="foo.svg#bar">.

Trait Implementations

impl Clone for HrefError[src]

impl Debug for HrefError[src]

impl From<HrefError> for ValueErrorKind[src]

impl PartialEq<HrefError> for HrefError[src]

impl StructuralPartialEq for HrefError[src]

Auto Trait Implementations

impl RefUnwindSafe for HrefError

impl Send for HrefError

impl Sync for HrefError

impl Unpin for HrefError

impl UnwindSafe for HrefError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,