[][src]Enum svgdom::QName

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

Qualified name.

Variants

Id(T)

For an SVG name.

Name(String)

For an unknown name.

Methods

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

pub fn as_ref(&self) -> QNameRef<T>[src]

Returns QName as QNameRef.

pub fn has_id(&self, id: T) -> bool[src]

Checks that this name has specified ID.

Trait Implementations

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

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

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

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for QName<AttributeId>[src]

impl Display for QName<ElementId>[src]

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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