Skip to content

Usage of QualName is not well documented #367

Closed
@kornelski

Description

@kornelski

The documentation explains well what is the local name in general from HTML/XML perspective, but doesn't say anything about its usage in this particular Rust implementation. For example:

  • How to get the name as &str?
  • How to compare the name against several names in match?
  • How to create a new one? new() says it's a "Simple constructor function.", but it's absolutely not simple, because it requires an instance of a peculiar Atom<LocalNameStaticSet> type.

Atom, StaticAtomSet, and PhfStrSet are not re-exported in the crate, so I can't see their documentation.

There's LocalNameStaticSet::get() that appears to return something string-like, but when I call qualname.local.get() it seems to match a different method (on Atom?) that requires an undocumented argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions