Module sailfish::runtime::filter

source ·
Expand description

Build-in filters

Structs

  • Helper struct for ‘dbg’ filter
  • Helper struct for ‘display’ filter
  • Jsonjson
    Helper struct for ‘json’ filter
  • Helper struct for ‘lower’ filter
  • Helper struct for ‘trim’ filter
  • Helper struct for ‘truncate’ filter
  • Helper struct for ‘upper’ filter

Functions

  • render using std::fmt::Debug trait
  • render using std::fmt::Display trait
  • jsonjson
    Serialize the given data structure as JSON into the buffer
  • convert the rendered contents to lowercase
  • Remove leading and trailing writespaces from rendered results
  • Limit length of rendered contents, appends ‘…’ if truncated
  • convert the rendered contents to uppercase