marianoguerra/shrubbery-html/kind does not have a README file

    ErrorKind

    pub(all) enum ErrorKind {
    SigilTag(String)
    ReservedCall(String)
    BareTermInBlock(String)
    AttrNotDeclaration
    BadAttrValue
    ChildrenOnVoid(String)
    BadEscapeCall(String)
    BlockOnNonElement
    AltsUnsupported
    BracesUnsupported
    TrailingRunAfterBlock
    NameNotSpellable(String)
    Unsupported(String)
    } derive(Eq,
    Debug
    )

    What went wrong in the bridge, as a closed set.

    Separate from html/kind because these are different problems: those are about markup that could not be read, these are about notation that could be read and does not mean what it says. A consumer matching on a code should be able to tell the two apart without parsing the string, which is what two namespaces buy.

    This package has no dependencies, for the reason html/kind has none: a kind is a name, and naming a problem must not link a renderer.

    ErrorKind::code

    fn ErrorKind::code(self : ErrorKind) -> String

    A stable identifier for this kind.

    Written out rather than derived from the variant name, so that renaming a variant is a local edit and not a silent break of everything downstream that matched on the string.

    ErrorKind::is_warning

    fn ErrorKind::is_warning(self : ErrorKind) -> Bool

    Whether this kind is a hard error or something a tolerant lowering may carry.

    One warning, and it is the interesting one: a run whose last item opened a block is legal notation that almost certainly means something other than what was intended, so it is worth saying and not worth refusing.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io