showtime/reports/table

Types

pub type Col {
  AlignRight(content: Content, margin: Int)
  AlignLeft(content: Content, margin: Int)
  Separator(char: String)
  Aligned(content: String)
}

Constructors

  • AlignRight(content: Content, margin: Int)
  • AlignLeft(content: Content, margin: Int)
  • Separator(char: String)
  • Aligned(content: String)
pub type Content {
  Content(unstyled_text: String)
  StyledContent(styled_text: String)
}

Constructors

  • Content(unstyled_text: String)
  • StyledContent(styled_text: String)
pub type Table {
  Table(header: Option(String), rows: List(List(Col)))
}

Constructors

  • Table(header: Option(String), rows: List(List(Col)))

Functions

pub fn align_table(table: Table) -> Table
pub fn to_string(table: Table) -> String
Search Document