glink/style/border_style

Types

pub type BorderStyle {
  BorderStyle(
    top_left: String,
    top: String,
    top_right: String,
    right: String,
    bottom_right: String,
    bottom: String,
    bottom_left: String,
    left: String,
  )
  Single
  Double
  Round
  Bold
  SingleDouble
  DoubleSingle
  Classic
  Arrow
}

Constructors

  • BorderStyle(
      top_left: String,
      top: String,
      top_right: String,
      right: String,
      bottom_right: String,
      bottom: String,
      bottom_left: String,
      left: String,
    )

    Style of the box border.

  • Single

    Example

    ┌────┐
    │    │
    └────┘
    
  • Double

    Example

    ╔════╗
    ║    ║
    ╚════╝
    
  • Round

    Example

    ╭────╮
    │    │
    ╰────╯
    
  • Bold

    Example

    ┏━━━━┓
    ┃    ┃
    ┗━━━━┛
    
  • SingleDouble

    Example

    ╓────╖
    ║    ║
    ╙────╜
    
  • DoubleSingle

    Example

    ╒════╕
    │    │
    ╘════╛
    
  • Classic

    Example

    +----+
    |    |
    +----+
    
  • Arrow

    Example

    ↘↓↓↓↓↙
    →    ←
    ↗↑↑↑↑↖
    

Values

pub fn value(border_style: BorderStyle) -> String
Search Document