Enum svgdom::QName[][src]

pub enum QName<T: SvgId> {
    Id(T),
    Name(String),
}

Qualified name.

Variants

For an SVG name.

For an unknown name.

Methods

impl<T: SvgId> QName<T>
[src]

Returns QName as QNameRef.

Checks that this name has specified ID.

Trait Implementations

impl<T: Clone + SvgId> Clone for QName<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: PartialEq + SvgId> PartialEq for QName<T>
[src]

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

This method tests for !=.

impl<T: Debug + SvgId> Debug for QName<T>
[src]

Formats the value using the given formatter. Read more

impl WriteBuffer for QName<AttributeId>
[src]

Writes data to the Vec<u8> buffer using specified WriteOptions.

Writes data to the Vec<u8> buffer using default WriteOptions.

Returns an object that implements fmt::Display using provided write options.

impl WriteBuffer for QName<ElementId>
[src]

Writes data to the Vec<u8> buffer using specified WriteOptions.

Writes data to the Vec<u8> buffer using default WriteOptions.

Returns an object that implements fmt::Display using provided write options.

impl Display for QName<AttributeId>
[src]

Formats the value using the given formatter. Read more

impl Display for QName<ElementId>
[src]

Formats the value using the given formatter. Read more

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

Performs the conversion.

Auto Trait Implementations

impl<T> Send for QName<T> where
    T: Send

impl<T> Sync for QName<T> where
    T: Sync