Enum svgdom::QNameRef[][src]

pub enum QNameRef<'a, T: SvgId> {
    Id(T),
    Name(&'a str),
}

Qualified name reference.

Variants

For an SVG name.

For an unknown name.

Methods

impl<'a, T: SvgId> QNameRef<'a, T>
[src]

Checks that this name has specified ID.

Trait Implementations

impl<'a, T: Clone + SvgId> Clone for QNameRef<'a, T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, T: Copy + SvgId> Copy for QNameRef<'a, T>
[src]

impl<'a, T: PartialEq + SvgId> PartialEq for QNameRef<'a, T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, T: Debug + SvgId> Debug for QNameRef<'a, T>
[src]

Formats the value using the given formatter. Read more

impl<'a, T: SvgId> From<T> for QNameRef<'a, T>
[src]

Performs the conversion.

impl<'a, T: SvgId> From<&'a str> for QNameRef<'a, T>
[src]

Performs the conversion.

impl<'a, T: SvgId> From<QNameRef<'a, T>> for QName<T>
[src]

Performs the conversion.

Auto Trait Implementations

impl<'a, T> Send for QNameRef<'a, T> where
    T: Send

impl<'a, T> Sync for QNameRef<'a, T> where
    T: Sync