bobzhang/atd/easy_format does not have a README file

    LabelBreak

    pub(all) enum LabelBreak {
    Auto
    Always
    AlwaysRec
    Never
    } derive(Eq,
    Debug
    )

    When to break a line after a label.

    LabelParam

    pub(all) struct LabelParam {
    label_break : LabelBreak
    space_after_label : Bool
    indent_after_label : Int
    } derive(Eq,
    Debug
    )

    Parameters of a label node.

    ListParam

    pub(all) struct ListParam {
    space_after_opening : Bool
    space_after_separator : Bool
    space_before_separator : Bool
    separators_stick_left : Bool
    space_before_closing : Bool
    stick_to_label : Bool
    align_closing : Bool
    wrap_body : Wrap
    indent_body : Int
    } derive(Eq,
    Debug
    )

    Parameters of a list node.
    pub(all) enum T {
    Atom(String)
    List((String, String, String, ListParam), Array[T])
    Label((T, LabelParam), T)
    } derive(
    Debug
    )

    A tree to be pretty-printed.

    Wrap

    pub(all) enum Wrap {
    WrapAtoms
    AlwaysWrap
    NeverWrap
    ForceBreaks
    ForceBreaksRec
    NoBreaks
    } derive(Eq,
    Debug
    )

    How the body of a list may be wrapped.

    label

    let label : LabelParam

    Default label parameters, as Easy_format.label.

    list

    let list : ListParam

    Default list parameters, as Easy_format.list.

    to_formatter

    fn to_formatter(fmt :
    Formatter
    , x : T) -> Unit

    Print a tree into a formatter and flush it.

    to_string

    fn to_string(x : T) -> String

    Pretty-print a tree into a string, like Easy_format.Pretty.to_string.

    Source Files

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io