Struct xmlhelper::decode::Name [] [src]

pub struct Name {
    pub local_name: String,
    pub namespace: Option<String>,
    pub prefix: Option<String>,
}

An owned variant of Name.

Everything about Name applies to this structure as well.

Fields

A local name, e.g. string in xsi:string.

A namespace URI, e.g. http://www.w3.org/2000/xmlns/.

A name prefix, e.g. xsi in xsi:string.

Methods

impl OwnedName
[src]

Constructs a borrowed Name based on this owned name.

Returns a new OwnedName instance representing a plain local name.

Returns a new OwnedName instance representing a qualified name with or without a prefix and with a namespace URI.

Returns an optional prefix by reference, equivalent to self.borrow().prefix but avoids extra work.

Returns an optional namespace by reference, equivalen to self.borrow().namespace but avoids extra work.

Trait Implementations

impl Display for OwnedName
[src]

Formats the value using the given formatter. Read more

impl FromStr for OwnedName
[src]

The associated error which can be returned from parsing.

Parses the given string slice into a qualified name.

This function, when finishes sucessfully, always return a qualified name without a namespace (name.namespace == None). It should be filled later using proper NamespaceStack.

It is supposed that all characters in the argument string are correct as defined by the XML specification. No additional checks except a check for emptiness are done.

impl Eq for OwnedName
[src]

impl Debug for OwnedName
[src]

Formats the value using the given formatter.

impl<'a> From<Name<'a>> for OwnedName
[src]

Performs the conversion.

impl PartialEq<OwnedName> for OwnedName
[src]

impl Hash for OwnedName
[src]

impl Clone for OwnedName
[src]