Sign in

    moonrockz/diagrams-mermaid/swimlane-ast does not have a README file

    Chain

    pub(all) struct Chain {
    endpoints : ReadOnlyArray[ReadOnlyArray[NodeDecl]]
    links : ReadOnlyArray[Link]
    } derive(Eq,
    Debug
    )

    Chain::equal

    fn Chain::equal(Chain, Chain) -> Bool

    Chain::not_equal

    fn Chain::not_equal(x : Chain, y : Chain) -> Bool

    Chain::to_repr

    Diagram

    pub struct Diagram {
    direction : String?
    front_matter : String?
    directives : ReadOnlyArray[String]
    statements : ReadOnlyArray[Statement]
    } derive(Eq,
    Debug
    )

    Diagram::equal

    fn Diagram::equal(Diagram, Diagram) -> Bool

    Diagram::new

    fn Diagram::new(statements : ArrayView[Statement], direction? : String, front_matter? : String, directives? : ArrayView[String]) -> Diagram

    Diagram::not_equal

    fn Diagram::not_equal(x : Diagram, y : Diagram) -> Bool

    Diagram::to_repr

    pub(all) struct Link {
    spelling : String
    label : String
    label_kind : String
    id : String?
    source_marker : String
    target_marker : String
    style : String
    length : Int
    } derive(
    Debug
    )

    Link::equal

    fn Link::equal(a : Link, b : Link) -> Bool

    Link::not_equal

    fn Link::not_equal(x : Link, y : Link) -> Bool

    Link::to_repr

    NodeDecl

    pub(all) struct NodeDecl {
    id : String
    label : String?
    label_kind : String
    shape : String?
    metadata : ReadOnlyArray[(String, Json)]
    classes : ReadOnlyArray[String]
    spelling : String
    } derive(
    Debug
    )

    impl Eq for NodeDecl

    NodeDecl::equal

    fn NodeDecl::equal(a : NodeDecl, b : NodeDecl) -> Bool

    NodeDecl::not_equal

    fn NodeDecl::not_equal(x : NodeDecl, y : NodeDecl) -> Bool

    NodeDecl::to_repr

    Statement

    pub(all) struct Statement {
    kind : StatementKind
    spelling : String
    span :
    Span

    } derive(
    Debug
    )

    impl Eq for Statement

    Statement::equal

    fn Statement::equal(a : Statement, b : Statement) -> Bool

    Statement::not_equal

    fn Statement::not_equal(x : Statement, y : Statement) -> Bool

    StatementKind

    pub(all) enum StatementKind {
    Nodes(ReadOnlyArray[NodeDecl])
    Edges(Chain)
    Subgraph(id~ : String, label~ : String)
    End
    Direction(String)
    Title(String)
    AccTitle(String)
    AccDescription(String)
    Metadata(keyword~ : String, text~ : String)
    Comment(String)
    } derive(Eq,
    Debug
    )

    StatementKind::equal

    StatementKind::not_equal

    fn StatementKind::not_equal(x : StatementKind, y : StatementKind) -> Bool

    canonical_json

    fn canonical_json(value : Json, depth_limit? : Int, work_limit? : Int, output_limit? : Int) -> String?

    Stable, bounded JSON spelling for typed metadata. The explicit stack also handles caller-constructed values without recursive host-stack traversal.

    canonical_yaml

    fn canonical_yaml(value : Json, depth_limit? : Int, work_limit? : Int, output_limit? : Int) -> String?

    Write typed metadata as block YAML, because the pinned native shape-data lexer closes at the first unquoted '}'. An explicit stack bounds traversal.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io